Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007939/0.0007941, allocations: 86.17 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009159/0.000916, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2064/0.2064, allocations: 15.27 MB / 306.3 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003414, allocations: 8 kB / 371.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2773, allocations: 54.61 MB / 426.2 MB, free: 40.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.002945/0.2803, allocations: 2.936 MB / 429.1 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005169/0.2855, allocations: 5.79 MB / 434.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000393/0.2859, allocations: 18.31 kB / 434.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004462/0.2864, allocations: 139.7 kB / 435.1 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007558/0.2872, allocations: 259.6 kB / 435.3 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.289, allocations: 0.7837 MB / 436.1 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006247/0.2896, allocations: 459.6 kB / 436.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.2899, allocations: 138.7 kB / 436.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002591/0.2902, allocations: 175.6 kB / 436.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.2906, allocations: 228.7 kB / 437.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.759e-05/0.2907, allocations: 11.91 kB / 437.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.292, allocations: 0.5249 MB / 437.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.756e-05/0.2921, allocations: 66.36 kB / 437.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.731e-05/0.2922, allocations: 92.05 kB / 437.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008676/0.2931, allocations: 0.7561 MB / 438.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2931, allocations: 0 / 438.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2931, allocations: 2.969 kB / 438.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.2931, allocations: 0 / 438.5 MB, free: 35.23 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008781/0.294, allocations: 0.6697 MB / 439.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.294, allocations: 9.781 kB / 439.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.2941, allocations: 59.47 kB / 439.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004872/0.2946, allocations: 112 kB / 439.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.295, allocations: 336.1 kB / 439.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.295, allocations: 17.84 kB / 439.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.2951, allocations: 20.53 kB / 439.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.2956, allocations: 384.3 kB / 440.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2956, allocations: 0 / 440.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.2956, allocations: 7.062 kB / 440.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2956, allocations: 3.188 kB / 440.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006281/0.2963, allocations: 0.5521 MB / 440.7 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.2977, allocations: 1.378 MB / 442.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.298, allocations: 171.7 kB / 442.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.2981, allocations: 95.02 kB / 442.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001551/0.2997, allocations: 1.869 MB / 444.2 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.2997, allocations: 41.44 kB / 444.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.2997, allocations: 0 / 444.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003722/0.3001, allocations: 219.1 kB / 444.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.3001, allocations: 54.56 kB / 444.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.3004, allocations: 371.5 kB / 444.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.3004, allocations: 25.7 kB / 444.9 MB, free: 30.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3005, allocations: 227.6 kB / 445.1 MB, free: 30.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.3006, allocations: 41.39 kB / 445.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.3006, allocations: 6.969 kB / 445.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.281e-05/0.3007, allocations: 350.4 kB / 445.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.85e-05/0.3008, allocations: 63.61 kB / 445.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.3009, allocations: 239.1 kB / 445.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.3011, allocations: 101.6 kB / 445.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3011, allocations: 0 / 445.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004499/0.3016, allocations: 351.6 kB / 446.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3016, allocations: 12.31 kB / 446.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.3016, allocations: 10.12 kB / 446.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3017, allocations: 13.12 kB / 446.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.3019, allocations: 73.42 kB / 446.3 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3019, allocations: 16.69 kB / 446.4 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.3021, allocations: 32.5 kB / 446.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.3021, allocations: 30.33 kB / 446.4 MB, free: 29.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.3022, allocations: 157.1 kB / 446.6 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/0.3023, allocations: 35.81 kB / 446.6 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004684/0.3027, allocations: 288.6 kB / 446.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3028, allocations: 3.312 kB / 446.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3028, allocations: 0 / 446.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3028, allocations: 0 / 446.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.3033, allocations: 0.6221 MB / 447.5 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3033, allocations: 7.5 kB / 447.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.497e-05/0.3033, allocations: 13.44 kB / 447.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3033, allocations: 0 / 447.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.3034, allocations: 11.42 kB / 447.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.3034, allocations: 6.609 kB / 447.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3034, allocations: 0 / 447.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.3035, allocations: 174.1 kB / 447.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-05/0.3036, allocations: 122.5 kB / 447.8 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.3037, allocations: 7.188 kB / 447.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.3038, allocations: 6.766 kB / 447.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.893e-05/0.3038, allocations: 3.094 kB / 447.9 MB, free: 28.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.3038, allocations: 6.125 kB / 447.9 MB, free: 28.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.304, allocations: 293.4 kB / 448.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.304, allocations: 0 / 448.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005032/0.3046, allocations: 184.1 kB / 448.3 MB, free: 28.38 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000685/0.3053, allocations: 0.9022 MB / 449.2 MB, free: 27.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.3055, allocations: 157 kB / 449.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3055, allocations: 0 / 449.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.81e-05/0.3056, allocations: 31.97 kB / 449.4 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.306, allocations: 87.81 kB / 449.5 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.3081, allocations: 1.95 MB / 451.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.3083, allocations: 0.7823 MB / 452.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.3086, allocations: 95.41 kB / 452.3 MB, free: 25.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.3087, allocations: 119.7 kB / 452.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3087, allocations: 0 / 452.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.3299, allocations: 9.121 MB / 461.6 MB, free: 24.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/0.3301, allocations: 179.8 kB / 461.7 MB, free: 24.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.289, allocations: 0 / 461.7 MB, free: 24.47 MB / 350.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1) Environment - environmentSimulation: