Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_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.005712/0.005712, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001276/0.001277, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07904/0.07904, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.84 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09651, allocations: 53.61 MB / 478.3 MB, free: 6.309 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.SimpleReaction2): time 0.03603/0.1326, allocations: 24.69 MB / 0.4912 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.1474, allocations: 11.62 MB / 0.5025 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006949/0.1481, allocations: 11.94 kB / 0.5025 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009971/0.1491, allocations: 262 kB / 0.5028 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003379/0.1525, allocations: 0.9968 MB / 0.5038 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2522/0.4047, allocations: 1.496 MB / 0.5052 GB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002151/0.4069, allocations: 1.251 MB / 0.5064 GB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009538/0.4079, allocations: 0.6951 MB / 0.5071 GB, free: 18.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006902/0.4086, allocations: 0.6129 MB / 0.5077 GB, free: 18.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008189/0.4094, allocations: 0.6692 MB / 0.5084 GB, free: 18.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.4095, allocations: 107 kB / 0.5085 GB, free: 18.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003842/0.4134, allocations: 1.28 MB / 0.5097 GB, free: 18.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002575/0.4137, allocations: 265.3 kB / 0.51 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005614/0.4142, allocations: 0.5435 MB / 0.5105 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004521/0.4188, allocations: 2.521 MB / 0.513 GB, free: 17.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4188, allocations: 2.688 kB / 0.513 GB, free: 17.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4188, allocations: 0.9062 kB / 0.513 GB, free: 17.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.4188, allocations: 0 / 0.513 GB, free: 17.85 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002781/0.4216, allocations: 1.518 MB / 0.5145 GB, free: 17.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.4217, allocations: 13.53 kB / 0.5145 GB, free: 17.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.4219, allocations: 141.2 kB / 0.5146 GB, free: 16.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.4229, allocations: 218 kB / 0.5148 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.424, allocations: 0.5788 MB / 0.5154 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.4241, allocations: 95.98 kB / 0.5155 GB, free: 16.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.4243, allocations: 91.52 kB / 0.5156 GB, free: 16.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.4261, allocations: 1.052 MB / 0.5166 GB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.4262, allocations: 6 kB / 0.5166 GB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-05/0.4262, allocations: 34.88 kB / 0.5166 GB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.4263, allocations: 26.38 kB / 0.5167 GB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.4284, allocations: 1.275 MB / 0.5179 GB, free: 15.92 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005474/0.4339, allocations: 3.472 MB / 0.5213 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.4366, allocations: 1.534 MB / 0.5228 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007403/0.4373, allocations: 435.6 kB / 0.5232 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005221/0.4425, allocations: 4.039 MB / 0.5271 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.4426, allocations: 37.16 kB / 0.5272 GB, free: 9.734 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.4426, allocations: 2.656 kB / 0.5272 GB, free: 9.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.003203/0.4458, allocations: 1.677 MB / 0.5288 GB, free: 8.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.4458, allocations: 60.25 kB / 0.5289 GB, free: 8.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006101/0.4465, allocations: 0.5097 MB / 0.5294 GB, free: 8.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.4465, allocations: 38.77 kB / 0.5294 GB, free: 8.512 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002597/0.4468, allocations: 477.6 kB / 0.5299 GB, free: 8.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.4469, allocations: 241.2 kB / 0.5301 GB, free: 7.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.4472, allocations: 170 kB / 0.5303 GB, free: 7.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4473, allocations: 377.2 kB / 0.5306 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.4477, allocations: 214.1 kB / 0.5308 GB, free: 7.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005364/0.4482, allocations: 0.5312 MB / 0.5313 GB, free: 6.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008754/0.4491, allocations: 0.814 MB / 0.5321 GB, free: 6.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.4491, allocations: 5.406 kB / 0.5321 GB, free: 6.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001172/0.4503, allocations: 0.8525 MB / 0.533 GB, free: 6.086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.4503, allocations: 13.08 kB / 0.533 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.4503, allocations: 11.16 kB / 0.533 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-05/0.4504, allocations: 19.84 kB / 0.533 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009/0.4513, allocations: 261.9 kB / 0.5333 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/0.4513, allocations: 22.94 kB / 0.5333 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000467/0.4518, allocations: 26.53 kB / 0.5333 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.4519, allocations: 52.91 kB / 0.5334 GB, free: 6.055 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.000311/0.4522, allocations: 239.1 kB / 0.5336 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.4523, allocations: 67.52 kB / 0.5337 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.4534, allocations: 0.6889 MB / 0.5343 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.4534, allocations: 6.5 kB / 0.5343 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4534, allocations: 3 kB / 0.5343 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4534, allocations: 9.562 kB / 0.5343 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000916/0.4544, allocations: 0.7596 MB / 0.5351 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4544, allocations: 0 / 0.5351 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007191/0.4551, allocations: 178.1 kB / 0.5353 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.4551, allocations: 9.844 kB / 0.5353 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/0.4552, allocations: 26.11 kB / 0.5353 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.4552, allocations: 9 kB / 0.5353 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4552, allocations: 2.969 kB / 0.5353 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.4564, allocations: 0.9599 MB / 0.5362 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002592/0.4567, allocations: 198.2 kB / 0.5364 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.102e-05/0.4568, allocations: 15.47 kB / 0.5364 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.457, allocations: 15.05 kB / 0.5365 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.4571, allocations: 54.62 kB / 0.5365 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.4572, allocations: 22.66 kB / 0.5365 GB, free: 4.363 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.4575, allocations: 343.1 kB / 0.5369 GB, free: 4.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4575, allocations: 0 / 0.5369 GB, free: 4.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001562/0.4591, allocations: 484.6 kB / 0.5373 GB, free: 4.027 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.logn) * 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 (71): * Single equations (assignments): 71 * 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.002463/0.4616, allocations: 1.987 MB / 0.5393 GB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009419/0.4625, allocations: 0.6051 MB / 0.5399 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4625, allocations: 0 / 0.5399 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.4629, allocations: 284.5 kB / 0.5401 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008642/0.4637, allocations: 168.7 kB / 0.5403 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008197/0.472, allocations: 6.128 MB / 0.5463 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/0.4726, allocations: 0.9527 MB / 0.5472 GB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000586/0.4732, allocations: 168.6 kB / 0.5474 GB, free: 9.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.4737, allocations: 339.3 kB / 0.5477 GB, free: 9.438 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4737, allocations: 3.938 kB / 0.5477 GB, free: 9.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05379/0.5275, allocations: 20.68 MB / 0.5679 GB, free: 5.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.015/9.543, allocations: 11.73 kB / 0.5679 GB, free: 5.66 MB / 414.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.SimpleReaction2_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)