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.001211/0.00121, allocations: 110.1 kB / 16.41 MB, free: 6.492 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.001396/0.001396, allocations: 187 kB / 17.34 MB, free: 5.766 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0861/0.0861, allocations: 15.3 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 425.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09919, allocations: 53.61 MB / 479.5 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.009997/0.1092, allocations: 8.548 MB / 488 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02867/0.1379, allocations: 23.25 MB / 0.4993 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.1393, allocations: 23.88 kB / 0.4993 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001803/0.1411, allocations: 0.5118 MB / 0.4998 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006356/0.1476, allocations: 2.001 MB / 0.5018 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008289/0.1559, allocations: 3.006 MB / 0.5047 GB, free: 332 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2288/0.3847, allocations: 2.494 MB / 0.5071 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002186/0.387, allocations: 1.428 MB / 0.5085 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.389, allocations: 1.23 MB / 0.5097 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002477/0.3915, allocations: 1.351 MB / 0.511 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004905/0.392, allocations: 215.2 kB / 0.5112 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009298/0.4013, allocations: 2.597 MB / 0.5138 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.4024, allocations: 0.5096 MB / 0.5143 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.4043, allocations: 1.089 MB / 0.5153 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.4178, allocations: 5.038 MB / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4179, allocations: 0 / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4179, allocations: 0 / 0.5203 GB, free: 4.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.877e-05/0.418, allocations: 0 / 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.007532/0.4255, allocations: 2.649 MB / 0.5228 GB, free: 3.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.4256, allocations: 14.25 kB / 0.5229 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002226/0.4278, allocations: 418 kB / 0.5233 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/0.43, allocations: 0.9539 MB / 0.5242 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.4302, allocations: 197.5 kB / 0.5244 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003514/0.4305, allocations: 189.5 kB / 0.5246 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.4341, allocations: 2.082 MB / 0.5266 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.4342, allocations: 0.9375 kB / 0.5266 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.4344, allocations: 71.53 kB / 0.5267 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.862e-05/0.4344, allocations: 45.41 kB / 0.5267 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003756/0.4382, allocations: 2.582 MB / 0.5292 GB, free: 0.7031 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.0113/0.4495, allocations: 6.33 MB / 0.5354 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004931/0.4545, allocations: 2.542 MB / 0.5379 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.4559, allocations: 0.8486 MB / 0.5387 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/0.4677, allocations: 8.069 MB / 0.5466 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.4678, allocations: 51.06 kB / 0.5467 GB, free: 2.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 4.468e-06/0.4678, allocations: 0 / 0.5467 GB, free: 2.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.02747/0.4953, allocations: 6.179 MB / 0.5527 GB, free: 12.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.4954, allocations: 97.83 kB / 0.5528 GB, free: 12.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.4968, allocations: 0.9451 MB / 0.5537 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002815/0.497, allocations: 49.7 kB / 0.5537 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005807/0.4976, allocations: 0.8306 MB / 0.5546 GB, free: 10.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005276/0.4982, allocations: 0.5176 MB / 0.5551 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/0.4987, allocations: 371.3 kB / 0.5554 GB, free: 9.617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4988, allocations: 305.1 kB / 0.5557 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.4999, allocations: 0.5233 MB / 0.5562 GB, free: 8.789 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.5014, allocations: 1.249 MB / 0.5574 GB, free: 7.215 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.002836/0.5043, allocations: 2.045 MB / 0.5594 GB, free: 4.918 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.5043, allocations: 4 kB / 0.5594 GB, free: 4.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008139/0.5124, allocations: 2.538 MB / 0.5619 GB, free: 2.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/0.5125, allocations: 18.5 kB / 0.5619 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.726e-05/0.5126, allocations: 25.03 kB / 0.562 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005426/0.518, allocations: 0.6926 MB / 0.5626 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/0.5203, allocations: 0.5328 MB / 0.5632 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.5327, allocations: 8.256 MB / 0.5712 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.5346, allocations: 79.84 kB / 0.5713 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/0.5349, allocations: 112 kB / 0.5714 GB, free: 8.336 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.0008152/0.5357, allocations: 379 kB / 0.5718 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003883/0.5361, allocations: 138.5 kB / 0.5719 GB, free: 7.852 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008647/0.5448, allocations: 2.486 MB / 0.5743 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.596e-05/0.5449, allocations: 16 kB / 0.5743 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.5449, allocations: 0 / 0.5743 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.009e-05/0.5449, allocations: 11.92 kB / 0.5744 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005665/0.5506, allocations: 2.539 MB / 0.5768 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.5506, allocations: 0 / 0.5768 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/0.5521, allocations: 315.2 kB / 0.5771 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006377/0.5585, allocations: 0.7397 MB / 0.5779 GB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/0.5588, allocations: 43.92 kB / 0.5779 GB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/0.5713, allocations: 9.491 MB / 0.5872 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.5713, allocations: 5.031 kB / 0.5872 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009341/0.5807, allocations: 2.811 MB / 0.5899 GB, free: 4.633 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000587/0.5813, allocations: 199.3 kB / 0.5901 GB, free: 4.418 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002843/0.5816, allocations: 32 kB / 0.5901 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008824/0.5825, allocations: 35.98 kB / 0.5902 GB, free: 4.352 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.5829, allocations: 131.6 kB / 0.5903 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.583, allocations: 54.42 kB / 0.5903 GB, free: 4.176 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008783/0.5838, allocations: 0.6342 MB / 0.591 GB, free: 3.535 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5839, allocations: 0 / 0.591 GB, free: 3.535 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004115/0.588, allocations: 1.05 MB / 0.592 GB, free: 2.484 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.002689/0.5907, allocations: 1.093 MB / 0.5931 GB, free: 1.523 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003887/0.5946, allocations: 2.076 MB / 0.5951 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.5946, allocations: 0 / 0.5951 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/0.5968, allocations: 1.383 MB / 0.5964 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.5987, allocations: 335.6 kB / 0.5968 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.6039, allocations: 3.026 MB / 0.5997 GB, free: 10.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009/0.6048, allocations: 1.264 MB / 0.6009 GB, free: 9.383 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007032/0.6055, allocations: 263.3 kB / 0.6012 GB, free: 9.125 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6055, allocations: 4 kB / 0.6012 GB, free: 9.121 MB / 462.1 MB Notification: Performance of Templates: time 0.06066/0.6662, allocations: 56.84 MB / 0.6567 GB, free: 420 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)