Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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: translateModel(Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") translateModel(Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ExothermicReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 103.5 kB / 16.4 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.001012/0.001012, allocations: 188.5 kB / 17.34 MB, free: 5.629 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.269/1.269, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07686/0.07686, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 64.12 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08746, allocations: 53.62 MB / 479.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.008825/0.09632, allocations: 8.553 MB / 488 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02397/0.1203, allocations: 23.25 MB / 0.4993 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.1216, allocations: 19.88 kB / 0.4993 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.1231, allocations: 0.5118 MB / 0.4998 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00572/0.1289, allocations: 2.009 MB / 0.5018 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00777/0.1367, allocations: 3.002 MB / 0.5047 GB, free: 312 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2179/0.3546, allocations: 2.493 MB / 0.5071 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002313/0.3569, allocations: 1.429 MB / 0.5085 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002559/0.3595, allocations: 1.23 MB / 0.5097 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003151/0.3627, allocations: 1.358 MB / 0.5111 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006694/0.3634, allocations: 215.1 kB / 0.5113 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/0.3739, allocations: 2.592 MB / 0.5138 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.3751, allocations: 0.5093 MB / 0.5143 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.3773, allocations: 1.092 MB / 0.5154 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.39, allocations: 5.03 MB / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3901, allocations: 4.484 kB / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3901, allocations: 0 / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.249e-05/0.3902, allocations: 1.281 kB / 0.5203 GB, free: 4.363 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: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.006616/0.3968, allocations: 2.652 MB / 0.5229 GB, free: 3.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3969, allocations: 9.75 kB / 0.5229 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/0.3989, allocations: 424.3 kB / 0.5233 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.4008, allocations: 0.9585 MB / 0.5242 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.401, allocations: 187.9 kB / 0.5244 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002789/0.4013, allocations: 190 kB / 0.5246 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003341/0.4046, allocations: 2.085 MB / 0.5266 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.4047, allocations: 0 / 0.5266 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.4048, allocations: 71.47 kB / 0.5267 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/0.4049, allocations: 43.84 kB / 0.5267 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003724/0.4086, allocations: 2.581 MB / 0.5292 GB, free: 0.6875 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.01028/0.4189, allocations: 6.337 MB / 0.5354 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004555/0.4235, allocations: 2.536 MB / 0.5379 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.4247, allocations: 0.8526 MB / 0.5387 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.4352, allocations: 8.072 MB / 0.5466 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.4353, allocations: 43.69 kB / 0.5467 GB, free: 2.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 3.236e-06/0.4353, allocations: 0.5625 kB / 0.5467 GB, free: 2.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.02561/0.4609, allocations: 6.185 MB / 0.5527 GB, free: 12.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.461, allocations: 90.42 kB / 0.5528 GB, free: 12.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.4623, allocations: 0.9412 MB / 0.5537 GB, free: 11.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002333/0.4626, allocations: 49.7 kB / 0.5538 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005887/0.4632, allocations: 0.8387 MB / 0.5546 GB, free: 10.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005856/0.4638, allocations: 0.5155 MB / 0.5551 GB, free: 10 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006315/0.4644, allocations: 371.3 kB / 0.5554 GB, free: 9.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4645, allocations: 305.1 kB / 0.5557 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009949/0.4655, allocations: 0.5345 MB / 0.5562 GB, free: 8.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.4671, allocations: 1.248 MB / 0.5575 GB, free: 7.219 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.4699, allocations: 2.035 MB / 0.5594 GB, free: 4.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.468e-05/0.4699, allocations: 8 kB / 0.5595 GB, free: 4.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007965/0.4779, allocations: 2.546 MB / 0.5619 GB, free: 2.512 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.4779, allocations: 16 kB / 0.562 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.478, allocations: 24 kB / 0.562 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005154/0.4831, allocations: 0.6937 MB / 0.5627 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002188/0.4854, allocations: 0.5315 MB / 0.5632 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/0.4969, allocations: 8.255 MB / 0.5712 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.4987, allocations: 75.84 kB / 0.5713 GB, free: 8.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003567/0.4991, allocations: 112 kB / 0.5714 GB, free: 8.348 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (241): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,6,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009483/0.5, allocations: 388 kB / 0.5718 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004471/0.5005, allocations: 134.3 kB / 0.5719 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008458/0.5089, allocations: 2.479 MB / 0.5743 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.509, allocations: 16 kB / 0.5744 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.509, allocations: 0 / 0.5744 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.001e-05/0.5091, allocations: 7.969 kB / 0.5744 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00569/0.5148, allocations: 2.527 MB / 0.5768 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.153e-05/0.5148, allocations: 4.312 kB / 0.5768 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.5163, allocations: 309.8 kB / 0.5771 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006053/0.5223, allocations: 0.7532 MB / 0.5779 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/0.5226, allocations: 39.98 kB / 0.5779 GB, free: 1.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/0.5347, allocations: 9.492 MB / 0.5872 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.5347, allocations: 9.719 kB / 0.5872 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008702/0.5434, allocations: 2.82 MB / 0.5899 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.544, allocations: 203.3 kB / 0.5901 GB, free: 4.418 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004277/0.5444, allocations: 32 kB / 0.5902 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.5455, allocations: 32 kB / 0.5902 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.5458, allocations: 127.6 kB / 0.5903 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.5459, allocations: 51.98 kB / 0.5904 GB, free: 4.184 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009533/0.5469, allocations: 0.6303 MB / 0.591 GB, free: 3.547 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5469, allocations: 4 kB / 0.591 GB, free: 3.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004039/0.551, allocations: 1.05 MB / 0.592 GB, free: 2.492 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (A1.logn,B1.logn,H2O.logn,A.logn,B.logn,H2O1.amountOfBonds,H2O1.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 (137): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002922/0.5539, allocations: 1.091 MB / 0.5931 GB, free: 1.535 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003997/0.5579, allocations: 2.075 MB / 0.5951 GB, free: 15.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.5579, allocations: 0 / 0.5951 GB, free: 15.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.5602, allocations: 1.382 MB / 0.5964 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.5623, allocations: 336.2 kB / 0.5968 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005611/0.568, allocations: 3.012 MB / 0.5997 GB, free: 10.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.5691, allocations: 1.271 MB / 0.6009 GB, free: 9.395 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007484/0.5698, allocations: 263.3 kB / 0.6012 GB, free: 9.137 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5699, allocations: 4 kB / 0.6012 GB, free: 9.133 MB / 462.1 MB Notification: Performance of Templates: time 0.06604/0.6359, allocations: 57.09 MB / 0.657 GB, free: 172 kB / 0.4981 GB make -j1 -f Chemical_Chemical.Examples.ExothermicReaction.makefile (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & ./Chemical_Chemical.Examples.ExothermicReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)