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.00116/0.00116, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.155/1.155, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1616/0.1616, allocations: 15.31 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 67.91 kB / 370.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08063/0.08177, allocations: 53.61 MB / 423.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.008624/0.09043, allocations: 8.55 MB / 432.5 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1523/0.2427, allocations: 23.23 MB / 455.7 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008311/0.2436, allocations: 23.41 kB / 455.7 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.2447, allocations: 0.5225 MB / 456.3 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.2483, allocations: 2.002 MB / 458.3 MB, free: 35.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004747/0.253, allocations: 2.993 MB / 461.3 MB, free: 34.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001704/0.2547, allocations: 2.492 MB / 463.7 MB, free: 33.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.2559, allocations: 1.425 MB / 465.2 MB, free: 33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009758/0.2569, allocations: 1.22 MB / 466.4 MB, free: 32.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.2582, allocations: 1.347 MB / 467.7 MB, free: 32.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000368/0.2586, allocations: 217.8 kB / 467.9 MB, free: 32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004749/0.2634, allocations: 2.606 MB / 470.6 MB, free: 31.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003122/0.2637, allocations: 0.5088 MB / 471.1 MB, free: 31.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007046/0.2644, allocations: 1.085 MB / 472.1 MB, free: 30.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005126/0.2695, allocations: 4.992 MB / 477.1 MB, free: 28.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2696, allocations: 0 / 477.1 MB, free: 28.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2696, allocations: 5.156 kB / 477.1 MB, free: 28.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.2696, allocations: 0 / 477.1 MB, free: 28.19 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.004032/0.2736, allocations: 2.665 MB / 479.8 MB, free: 26.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2737, allocations: 8.781 kB / 479.8 MB, free: 26.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/0.2752, allocations: 414.2 kB / 480.2 MB, free: 26.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.2764, allocations: 0.929 MB / 481.2 MB, free: 25.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.2765, allocations: 197.8 kB / 481.3 MB, free: 25.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002547/0.2768, allocations: 184.4 kB / 481.5 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002673/0.2795, allocations: 2.087 MB / 483.6 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.2795, allocations: 0 / 483.6 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.2796, allocations: 70.97 kB / 483.7 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.2797, allocations: 43.28 kB / 483.7 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003395/0.2831, allocations: 2.584 MB / 486.3 MB, free: 24.12 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.007892/0.291, allocations: 6.372 MB / 492.7 MB, free: 20.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004195/0.2952, allocations: 2.531 MB / 495.2 MB, free: 19.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009939/0.2962, allocations: 0.8525 MB / 496.1 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007777/0.304, allocations: 8.093 MB / 0.4923 GB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.304, allocations: 44.97 kB / 0.4924 GB, free: 12.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.425e-06/0.304, allocations: 0 / 0.4924 GB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02226/0.3263, allocations: 6.178 MB / 0.4984 GB, free: 7.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.3263, allocations: 94.42 kB / 0.4985 GB, free: 7.789 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.3271, allocations: 0.9411 MB / 0.4994 GB, free: 6.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.3271, allocations: 57.7 kB / 0.4995 GB, free: 6.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.3274, allocations: 0.8288 MB / 0.5003 GB, free: 5.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.3276, allocations: 0.5161 MB / 0.5008 GB, free: 5.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003566/0.328, allocations: 367.2 kB / 0.5011 GB, free: 5.035 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.92e-05/0.328, allocations: 305.1 kB / 0.5014 GB, free: 4.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007218/0.3288, allocations: 0.5233 MB / 0.5019 GB, free: 4.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009119/0.3297, allocations: 1.251 MB / 0.5032 GB, free: 2.617 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.00189/0.3316, allocations: 2.052 MB / 0.5052 GB, free: 220 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3316, allocations: 4 kB / 0.5052 GB, free: 216 kB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007245/0.3388, allocations: 2.533 MB / 0.5077 GB, free: 13.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.3389, allocations: 19.98 kB / 0.5077 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.3389, allocations: 24 kB / 0.5077 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005171/0.3441, allocations: 0.7095 MB / 0.5084 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.3459, allocations: 0.5227 MB / 0.5089 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.3564, allocations: 8.252 MB / 0.517 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3574, allocations: 80.16 kB / 0.517 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.3575, allocations: 112 kB / 0.5171 GB, free: 3.371 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.0005/0.358, allocations: 389 kB / 0.5175 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.3583, allocations: 138.3 kB / 0.5176 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008099/0.3664, allocations: 2.48 MB / 0.5201 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3664, allocations: 16 kB / 0.5201 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3664, allocations: 4 kB / 0.5201 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.3664, allocations: 11.91 kB / 0.5201 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.3709, allocations: 2.528 MB / 0.5226 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3709, allocations: 0 / 0.5226 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.3723, allocations: 319.9 kB / 0.5229 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006069/0.3783, allocations: 0.7416 MB / 0.5236 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.701e-05/0.3784, allocations: 47.92 kB / 0.5236 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.3893, allocations: 9.492 MB / 0.5329 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3893, allocations: 7.938 kB / 0.5329 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008024/0.3974, allocations: 2.819 MB / 0.5357 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.3976, allocations: 203.3 kB / 0.5359 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.3978, allocations: 31.94 kB / 0.5359 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007762/0.3985, allocations: 35.98 kB / 0.5359 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.3988, allocations: 124.9 kB / 0.536 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.232e-05/0.3989, allocations: 55.98 kB / 0.5361 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006699/0.3995, allocations: 0.6303 MB / 0.5367 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3995, allocations: 0 / 0.5367 GB, free: 14.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003113/0.4027, allocations: 1.05 MB / 0.5377 GB, free: 13.3 MB / 414.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.00153/0.4042, allocations: 1.085 MB / 0.5388 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003494/0.4077, allocations: 2.158 MB / 0.5409 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4077, allocations: 0 / 0.5409 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001797/0.4095, allocations: 1.379 MB / 0.5423 GB, free: 8.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.4108, allocations: 331.4 kB / 0.5426 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.4147, allocations: 3.019 MB / 0.5455 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.4154, allocations: 1.268 MB / 0.5468 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.4166, allocations: 327.8 kB / 0.5471 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.4169, allocations: 199.3 kB / 0.5473 GB, free: 3.355 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4169, allocations: 3.938 kB / 0.5473 GB, free: 3.352 MB / 414.1 MB Notification: Performance of Templates: time 0.04645/0.4634, allocations: 37.32 MB / 0.5837 GB, free: 14.16 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)