Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",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.006229/0.006229, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001231/0.001231, allocations: 189.7 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08776/0.08776, allocations: 15.3 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.83 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08648, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.03186/0.1184, allocations: 23.17 MB / 0.4897 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009813/0.1282, allocations: 9.16 MB / 0.4987 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.1286, allocations: 11.94 kB / 0.4987 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006085/0.1292, allocations: 218.4 kB / 0.4989 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009417/0.1301, allocations: 357.2 kB / 0.4992 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002984/0.1331, allocations: 1.428 MB / 0.5006 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008918/0.1341, allocations: 0.6697 MB / 0.5013 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.1344, allocations: 233.1 kB / 0.5015 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.1348, allocations: 319.2 kB / 0.5018 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000485/0.1353, allocations: 346.8 kB / 0.5021 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-05/0.1354, allocations: 39.94 kB / 0.5022 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001923/0.1374, allocations: 0.823 MB / 0.503 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.1375, allocations: 119.5 kB / 0.5031 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.1378, allocations: 258.7 kB / 0.5033 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2117/0.3495, allocations: 1.499 MB / 0.5048 GB, free: 22.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3496, allocations: 0.625 kB / 0.5048 GB, free: 22.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3496, allocations: 0 / 0.5048 GB, free: 22.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.3496, allocations: 4.25 kB / 0.5048 GB, free: 22.37 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001492/0.3511, allocations: 0.9647 MB / 0.5057 GB, free: 21.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3512, allocations: 9.594 kB / 0.5057 GB, free: 21.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.331e-05/0.3513, allocations: 65.88 kB / 0.5058 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007838/0.352, allocations: 159.1 kB / 0.506 GB, free: 21.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006014/0.3527, allocations: 454.8 kB / 0.5064 GB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.3527, allocations: 25.78 kB / 0.5064 GB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.3528, allocations: 29.78 kB / 0.5064 GB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007862/0.3536, allocations: 0.5365 MB / 0.507 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3536, allocations: 0.7188 kB / 0.507 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.3536, allocations: 13.66 kB / 0.507 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.3537, allocations: 8.125 kB / 0.507 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.3549, allocations: 0.8022 MB / 0.5078 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.3571, allocations: 1.89 MB / 0.5096 GB, free: 20.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.3575, allocations: 215.4 kB / 0.5098 GB, free: 20.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.3577, allocations: 132.9 kB / 0.51 GB, free: 20.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002914/0.3606, allocations: 2.714 MB / 0.5126 GB, free: 18.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.3607, allocations: 35.44 kB / 0.5126 GB, free: 18.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.3607, allocations: 0 / 0.5126 GB, free: 18.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006525/0.3613, allocations: 293.8 kB / 0.5129 GB, free: 18.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.3614, allocations: 58.34 kB / 0.513 GB, free: 18.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004735/0.3619, allocations: 480 kB / 0.5134 GB, free: 17.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.3619, allocations: 31.73 kB / 0.5135 GB, free: 17.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.3621, allocations: 297.4 kB / 0.5137 GB, free: 17.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.3621, allocations: 68.7 kB / 0.5138 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.3623, allocations: 98.69 kB / 0.5139 GB, free: 17.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.3624, allocations: 360.3 kB / 0.5142 GB, free: 17.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.3626, allocations: 92.28 kB / 0.5143 GB, free: 17.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.3628, allocations: 356.4 kB / 0.5147 GB, free: 17.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005048/0.3633, allocations: 0.4894 MB / 0.5152 GB, free: 16.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.3634, allocations: 3.047 kB / 0.5152 GB, free: 16.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000749/0.3641, allocations: 488.7 kB / 0.5156 GB, free: 16.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3641, allocations: 10.94 kB / 0.5156 GB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.3642, allocations: 10.03 kB / 0.5156 GB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.08e-05/0.3642, allocations: 14.75 kB / 0.5157 GB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.3645, allocations: 114.8 kB / 0.5158 GB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.3646, allocations: 18.5 kB / 0.5158 GB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.3649, allocations: 56.03 kB / 0.5158 GB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-05/0.3649, allocations: 34.8 kB / 0.5159 GB, free: 16.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.3651, allocations: 189.2 kB / 0.516 GB, free: 16.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.887e-05/0.3652, allocations: 48.86 kB / 0.5161 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007135/0.3659, allocations: 393.4 kB / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3659, allocations: 3.688 kB / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3659, allocations: 0 / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3659, allocations: 0.5156 kB / 0.5165 GB, free: 16.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009132/0.3669, allocations: 0.7162 MB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3669, allocations: 3.406 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.367, allocations: 16.33 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.367, allocations: 6.406 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.367, allocations: 5.875 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.367, allocations: 2.891 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.367, allocations: 5.531 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.3673, allocations: 196.1 kB / 0.5174 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.3674, allocations: 136.1 kB / 0.5175 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-05/0.3675, allocations: 12.02 kB / 0.5175 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.3676, allocations: 5.609 kB / 0.5175 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.3676, allocations: 6.516 kB / 0.5176 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3677, allocations: 3.25 kB / 0.5176 GB, free: 15.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006177/0.3683, allocations: 414.9 kB / 0.518 GB, free: 15.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.3683, allocations: 2.656 kB / 0.518 GB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3694, allocations: 253.1 kB / 0.5182 GB, free: 15.49 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009288/0.3704, allocations: 1.046 MB / 0.5192 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000387/0.3708, allocations: 233.4 kB / 0.5194 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3708, allocations: 0 / 0.5194 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/0.3708, allocations: 37.64 kB / 0.5195 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.3714, allocations: 113.1 kB / 0.5196 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.3759, allocations: 4.137 MB / 0.5236 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.3762, allocations: 0.8133 MB / 0.5244 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004478/0.3767, allocations: 132.9 kB / 0.5245 GB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.3769, allocations: 170.7 kB / 0.5247 GB, free: 11.36 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3769, allocations: 0 / 0.5247 GB, free: 11.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03722/0.4141, allocations: 13.09 MB / 0.5375 GB, free: 7.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/8.737, allocations: 21.86 kB / 0.5375 GB, free: 7.383 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)