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.005768/0.005768, allocations: 100.3 kB / 15.87 MB, free: 5.863 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.001489/0.001489, allocations: 190.2 kB / 16.79 MB, free: 5.805 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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2134/0.2134, allocations: 15.31 MB / 305.9 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.89 kB / 370.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 53.62 MB / 423.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.01074/0.1213, allocations: 9.678 MB / 433.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2151/0.3364, allocations: 23.22 MB / 456.8 MB, free: 37.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00204/0.3385, allocations: 42.47 kB / 456.9 MB, free: 37.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.3405, allocations: 467.3 kB / 457.3 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007045/0.3476, allocations: 1.742 MB / 459 MB, free: 35.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008855/0.3565, allocations: 2.628 MB / 461.7 MB, free: 34.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003811/0.3603, allocations: 2.43 MB / 464.1 MB, free: 33.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002086/0.3624, allocations: 1.222 MB / 465.3 MB, free: 33.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.3646, allocations: 1.163 MB / 466.5 MB, free: 32.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.367, allocations: 1.326 MB / 467.8 MB, free: 32.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005685/0.3676, allocations: 147.2 kB / 468 MB, free: 32.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01005/0.3777, allocations: 2.532 MB / 470.5 MB, free: 31.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009363/0.3787, allocations: 451.4 kB / 470.9 MB, free: 31.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.3802, allocations: 1.028 MB / 472 MB, free: 30.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005898/0.3861, allocations: 3.7 MB / 475.7 MB, free: 29.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.475e-06/0.3861, allocations: 0 / 475.7 MB, free: 29.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.3861, allocations: 1.188 kB / 475.7 MB, free: 29.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.511e-05/0.3862, allocations: 3.938 kB / 475.7 MB, free: 29.12 MB / 366.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.006692/0.3929, allocations: 2.658 MB / 478.3 MB, free: 27.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3929, allocations: 9.375 kB / 478.3 MB, free: 27.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002216/0.3952, allocations: 414.2 kB / 478.7 MB, free: 27.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.397, allocations: 0.9293 MB / 479.7 MB, free: 26.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.3972, allocations: 194.9 kB / 479.9 MB, free: 26.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003439/0.3975, allocations: 187.8 kB / 480 MB, free: 26.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003949/0.4015, allocations: 2.08 MB / 482.1 MB, free: 25.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.805e-05/0.4016, allocations: 1.156 kB / 482.1 MB, free: 25.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.4017, allocations: 70.28 kB / 482.2 MB, free: 25.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.437e-05/0.4018, allocations: 48.94 kB / 482.2 MB, free: 25.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004326/0.4061, allocations: 2.582 MB / 484.8 MB, free: 25.06 MB / 366.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.01284/0.419, allocations: 6.357 MB / 491.2 MB, free: 21.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005815/0.4248, allocations: 2.536 MB / 493.7 MB, free: 20.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.4264, allocations: 0.8485 MB / 494.6 MB, free: 19.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01212/0.4385, allocations: 8.105 MB / 0.4909 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.4386, allocations: 47.17 kB / 0.4909 GB, free: 13.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.017e-06/0.4386, allocations: 2.969 kB / 0.4909 GB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02935/0.468, allocations: 6.18 MB / 0.497 GB, free: 10 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.4681, allocations: 90.42 kB / 0.4971 GB, free: 9.895 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.4693, allocations: 0.9412 MB / 0.498 GB, free: 8.938 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002729/0.4696, allocations: 49.7 kB / 0.498 GB, free: 8.883 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.47, allocations: 0.8365 MB / 0.4988 GB, free: 8.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005267/0.4706, allocations: 0.5083 MB / 0.4993 GB, free: 7.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/0.4711, allocations: 379.2 kB / 0.4997 GB, free: 7.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.4711, allocations: 301.1 kB / 0.5 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.472, allocations: 0.5272 MB / 0.5005 GB, free: 6.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.4732, allocations: 1.251 MB / 0.5017 GB, free: 4.715 MB / 366.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.002325/0.4756, allocations: 2.046 MB / 0.5037 GB, free: 2.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.4756, allocations: 8 kB / 0.5037 GB, free: 2.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008004/0.4836, allocations: 2.541 MB / 0.5062 GB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.4837, allocations: 16 kB / 0.5062 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/0.4837, allocations: 24 kB / 0.5062 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006071/0.4898, allocations: 0.698 MB / 0.5069 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/0.4921, allocations: 0.5265 MB / 0.5074 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.5048, allocations: 7.468 MB / 0.5147 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/0.507, allocations: 119.8 kB / 0.5149 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004211/0.5074, allocations: 112 kB / 0.515 GB, free: 6.234 MB / 382.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.001175/0.5086, allocations: 385.1 kB / 0.5153 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005628/0.5092, allocations: 134.3 kB / 0.5155 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/0.5194, allocations: 2.479 MB / 0.5179 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/0.5195, allocations: 16 kB / 0.5179 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/0.5195, allocations: 3.938 kB / 0.5179 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.065e-05/0.5196, allocations: 11.91 kB / 0.5179 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00699/0.5266, allocations: 2.528 MB / 0.5204 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.5266, allocations: 4 kB / 0.5204 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.5282, allocations: 311.9 kB / 0.5207 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00725/0.5355, allocations: 0.7494 MB / 0.5214 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002876/0.5358, allocations: 47.86 kB / 0.5215 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/0.5491, allocations: 8.583 MB / 0.5298 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.5492, allocations: 4 kB / 0.5298 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/0.5598, allocations: 2.819 MB / 0.5326 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006593/0.5605, allocations: 215.2 kB / 0.5328 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005467/0.5611, allocations: 28 kB / 0.5328 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.5625, allocations: 55.83 kB / 0.5329 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/0.563, allocations: 125 kB / 0.533 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/0.5632, allocations: 59.91 kB / 0.5331 GB, free: 2.773 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00118/0.5644, allocations: 0.6303 MB / 0.5337 GB, free: 2.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5644, allocations: 0 / 0.5337 GB, free: 2.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004926/0.5693, allocations: 1.046 MB / 0.5347 GB, free: 1.09 MB / 398.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.003148/0.5725, allocations: 1.085 MB / 0.5357 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004404/0.5769, allocations: 2.072 MB / 0.5378 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.5769, allocations: 4 kB / 0.5378 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002731/0.5797, allocations: 1.364 MB / 0.5391 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/0.5824, allocations: 301.3 kB / 0.5394 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00702/0.5894, allocations: 3.787 MB / 0.5431 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.5908, allocations: 1.264 MB / 0.5443 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008587/0.5917, allocations: 263.3 kB / 0.5446 GB, free: 6.75 MB / 414.1 MB Notification: Performance of SimCode: time 1.804e-06/0.5917, allocations: 0 / 0.5446 GB, free: 6.75 MB / 414.1 MB Notification: Performance of Templates: time 0.2633/0.855, allocations: 56.73 MB / 0.6 GB, free: 134.5 MB / 462.1 MB 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)