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: "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",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.005392/0.005392, allocations: 100.7 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.001341/0.001341, allocations: 193.5 kB / 16.67 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.399/1.399, allocations: 222.9 MB / 240.4 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.09061/0.09061, allocations: 15.3 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 56.12 kB / 424.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09565, allocations: 53.62 MB / 478.3 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.01099/0.1067, allocations: 8.561 MB / 486.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02782/0.1345, allocations: 23.25 MB / 0.4981 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001638/0.1362, allocations: 19.88 kB / 0.4982 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.138, allocations: 0.5087 MB / 0.4987 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006178/0.1442, allocations: 2.029 MB / 0.5006 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007764/0.152, allocations: 3.021 MB / 0.5036 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2516/0.4036, allocations: 2.494 MB / 0.506 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002429/0.4061, allocations: 1.435 MB / 0.5074 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.4088, allocations: 1.228 MB / 0.5086 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.4117, allocations: 1.35 MB / 0.5099 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005797/0.4123, allocations: 219.3 kB / 0.5101 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01045/0.4228, allocations: 2.593 MB / 0.5127 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001085/0.4239, allocations: 0.5081 MB / 0.5132 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002402/0.4263, allocations: 1.091 MB / 0.5142 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01582/0.4422, allocations: 5.032 MB / 0.5192 GB, free: 3.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.4422, allocations: 4.656 kB / 0.5192 GB, free: 3.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4422, allocations: 1.469 kB / 0.5192 GB, free: 3.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.953e-05/0.4423, allocations: 0 / 0.5192 GB, free: 3.914 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.006649/0.449, allocations: 2.66 MB / 0.5218 GB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.449, allocations: 9.312 kB / 0.5218 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003297/0.4494, allocations: 259.7 kB / 0.522 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001968/0.4513, allocations: 411.7 kB / 0.5224 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/0.4532, allocations: 0.9624 MB / 0.5233 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.4534, allocations: 192.3 kB / 0.5235 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003687/0.4537, allocations: 190.9 kB / 0.5237 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003599/0.4573, allocations: 2.088 MB / 0.5258 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.727e-05/0.4574, allocations: 0 / 0.5258 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/0.4576, allocations: 71.28 kB / 0.5258 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.63e-05/0.4576, allocations: 45.06 kB / 0.5259 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003806/0.4614, allocations: 2.578 MB / 0.5284 GB, free: 276 kB / 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.01013/0.4716, allocations: 6.33 MB / 0.5346 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004748/0.4763, allocations: 2.538 MB / 0.537 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.4777, allocations: 0.846 MB / 0.5379 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.4888, allocations: 8.077 MB / 0.5458 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.4889, allocations: 55.67 kB / 0.5458 GB, free: 2.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 2.906e-06/0.4889, allocations: 3.75 kB / 0.5458 GB, free: 2.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.02834/0.5172, allocations: 6.173 MB / 0.5518 GB, free: 12.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.5173, allocations: 98.36 kB / 0.5519 GB, free: 12.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.5187, allocations: 0.949 MB / 0.5529 GB, free: 11.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000276/0.519, allocations: 49.7 kB / 0.5529 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005212/0.5195, allocations: 0.8275 MB / 0.5537 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004892/0.52, allocations: 0.5131 MB / 0.5542 GB, free: 9.953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00052/0.5205, allocations: 375.2 kB / 0.5546 GB, free: 9.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.5206, allocations: 301.1 kB / 0.5549 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009263/0.5215, allocations: 0.5272 MB / 0.5554 GB, free: 8.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.523, allocations: 1.249 MB / 0.5566 GB, free: 7.176 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.002729/0.5257, allocations: 2.045 MB / 0.5586 GB, free: 4.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/0.5258, allocations: 8 kB / 0.5586 GB, free: 4.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008431/0.5342, allocations: 2.534 MB / 0.5611 GB, free: 2.469 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.5343, allocations: 19.98 kB / 0.5611 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.5343, allocations: 20 kB / 0.5611 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005764/0.5401, allocations: 0.7068 MB / 0.5618 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/0.5422, allocations: 0.5215 MB / 0.5623 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.5546, allocations: 8.254 MB / 0.5704 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002046/0.5567, allocations: 79.94 kB / 0.5704 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000392/0.5571, allocations: 108 kB / 0.5706 GB, free: 8.301 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.001083/0.5582, allocations: 383.1 kB / 0.5709 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000516/0.5588, allocations: 134.3 kB / 0.571 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009502/0.5683, allocations: 2.49 MB / 0.5735 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.541e-05/0.5683, allocations: 12 kB / 0.5735 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/0.5684, allocations: 4 kB / 0.5735 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.116e-05/0.5684, allocations: 11.91 kB / 0.5735 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00656/0.575, allocations: 2.535 MB / 0.576 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/0.575, allocations: 4 kB / 0.576 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/0.5766, allocations: 310 kB / 0.5763 GB, free: 2.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007029/0.5836, allocations: 0.7508 MB / 0.577 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003117/0.584, allocations: 43.92 kB / 0.5771 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01278/0.5967, allocations: 9.488 MB / 0.5863 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.5968, allocations: 5.438 kB / 0.5863 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/0.607, allocations: 2.816 MB / 0.5891 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006157/0.6076, allocations: 199.3 kB / 0.5893 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004717/0.6081, allocations: 32 kB / 0.5893 GB, free: 4.336 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.6093, allocations: 31.98 kB / 0.5893 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004302/0.6097, allocations: 130.6 kB / 0.5894 GB, free: 4.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001673/0.6099, allocations: 51.98 kB / 0.5895 GB, free: 4.133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.611, allocations: 0.6303 MB / 0.5901 GB, free: 3.496 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.611, allocations: 0 / 0.5901 GB, free: 3.496 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004134/0.6152, allocations: 1.05 MB / 0.5911 GB, free: 2.445 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.01311/0.6283, allocations: 4.358 MB / 0.5954 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00465/0.633, allocations: 2.081 MB / 0.5974 GB, free: 12.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.633, allocations: 0 / 0.5974 GB, free: 12.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.6353, allocations: 1.373 MB / 0.5988 GB, free: 10.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.6377, allocations: 335.1 kB / 0.5991 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03553/0.6732, allocations: 13.54 MB / 0.6123 GB, free: 12.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/0.6745, allocations: 1.264 MB / 0.6135 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001617/0.6762, allocations: 335.8 kB / 0.6139 GB, free: 10.44 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/0.6774, allocations: 0.7179 MB / 0.6146 GB, free: 9.719 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/0.6774, allocations: 0 / 0.6146 GB, free: 9.719 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1167/0.7941, allocations: 50.74 MB / 0.6641 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/16.31, allocations: 4.062 kB / 0.6641 GB, free: 7.379 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ExothermicReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)