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.0007939/0.000794, allocations: 98.88 kB / 16.02 MB, free: 76 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.0008539/0.0008539, allocations: 183.7 kB / 16.92 MB, free: 6.715 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.333/1.333, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1903/0.1903, allocations: 15.27 MB / 307.4 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003393/0.0003393, allocations: 8 kB / 372.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2468, allocations: 54.61 MB / 427.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.007121/0.2539, allocations: 9.207 MB / 436.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.274, allocations: 22.99 MB / 459.6 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.2757, allocations: 38.59 kB / 459.6 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.2769, allocations: 467 kB / 460.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004963/0.2819, allocations: 1.736 MB / 461.8 MB, free: 18.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006928/0.2889, allocations: 2.638 MB / 464.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002822/0.2917, allocations: 2.433 MB / 466.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.293, allocations: 1.17 MB / 468 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001457/0.2945, allocations: 1.108 MB / 469.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.2963, allocations: 1.253 MB / 470.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.2966, allocations: 113.1 kB / 470.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007343/0.304, allocations: 2.507 MB / 473 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006246/0.3046, allocations: 412.6 kB / 473.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.3059, allocations: 1.001 MB / 474.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.3112, allocations: 3.655 MB / 478.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3113, allocations: 0.7969 kB / 478.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3113, allocations: 0 / 478.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.437e-05/0.3113, allocations: 4 kB / 478.1 MB, free: 11.46 MB / 350.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.005189/0.3165, allocations: 2.21 MB / 480.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3166, allocations: 9.281 kB / 480.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/0.3185, allocations: 419.5 kB / 480.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.3201, allocations: 0.8969 MB / 481.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.3202, allocations: 190.4 kB / 481.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.3206, allocations: 187.6 kB / 482 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.3242, allocations: 2.086 MB / 484 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.3242, allocations: 1.281 kB / 484.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001758/0.3244, allocations: 70.72 kB / 484.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-05/0.3245, allocations: 47.73 kB / 484.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004291/0.3288, allocations: 2.579 MB / 486.7 MB, free: 7.621 MB / 350.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.01062/0.3394, allocations: 6.291 MB / 493 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/0.3438, allocations: 2.534 MB / 495.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.3449, allocations: 0.8551 MB / 496.4 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01084/0.3558, allocations: 7.904 MB / 0.4925 GB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.3559, allocations: 55.67 kB / 0.4926 GB, free: 7.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 5.531e-06/0.3559, allocations: 0 / 0.4926 GB, free: 7.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.0311/0.387, allocations: 6.262 MB / 0.4987 GB, free: 1.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.3871, allocations: 98.42 kB / 0.4988 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.3884, allocations: 0.945 MB / 0.4997 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.3886, allocations: 49.7 kB / 0.4997 GB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005797/0.3891, allocations: 0.8327 MB / 0.5006 GB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004765/0.3896, allocations: 0.5161 MB / 0.5011 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.3899, allocations: 161.6 kB / 0.5012 GB, free: 14.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.39, allocations: 301.1 kB / 0.5015 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000994/0.391, allocations: 0.5311 MB / 0.502 GB, free: 13.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.3924, allocations: 1.243 MB / 0.5032 GB, free: 11.97 MB / 382.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.002871/0.3953, allocations: 2.053 MB / 0.5052 GB, free: 9.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.3953, allocations: 4 kB / 0.5052 GB, free: 9.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.009517/0.4049, allocations: 2.58 MB / 0.5078 GB, free: 6.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.4049, allocations: 12 kB / 0.5078 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-05/0.405, allocations: 27.98 kB / 0.5078 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006917/0.4119, allocations: 0.7409 MB / 0.5085 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/0.4141, allocations: 0.5266 MB / 0.509 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/0.4271, allocations: 7.534 MB / 0.5164 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.4291, allocations: 107.9 kB / 0.5165 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003467/0.4295, allocations: 116 kB / 0.5166 GB, free: 13.34 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.000959/0.4305, allocations: 388.6 kB / 0.517 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003711/0.4308, allocations: 142.2 kB / 0.5171 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/0.4419, allocations: 2.519 MB / 0.5196 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/0.4419, allocations: 16 kB / 0.5196 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.442, allocations: 3.938 kB / 0.5196 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.31e-05/0.442, allocations: 15.97 kB / 0.5196 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006985/0.449, allocations: 2.544 MB / 0.5221 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/0.449, allocations: 4 kB / 0.5221 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.4506, allocations: 312 kB / 0.5224 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007889/0.4585, allocations: 0.796 MB / 0.5232 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002613/0.4588, allocations: 39.98 kB / 0.5232 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/0.4723, allocations: 8.654 MB / 0.5317 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.4723, allocations: 7.984 kB / 0.5317 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/0.4836, allocations: 2.857 MB / 0.5345 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006227/0.4843, allocations: 219.3 kB / 0.5347 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.4847, allocations: 36 kB / 0.5347 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/0.486, allocations: 51.83 kB / 0.5348 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003684/0.4864, allocations: 132.9 kB / 0.5349 GB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.4865, allocations: 51.98 kB / 0.5349 GB, free: 9.652 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001141/0.4877, allocations: 0.6381 MB / 0.5356 GB, free: 9.008 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4877, allocations: 0 / 0.5356 GB, free: 9.008 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004218/0.4919, allocations: 1.042 MB / 0.5366 GB, free: 7.965 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.003314/0.4952, allocations: 1.081 MB / 0.5376 GB, free: 6.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00452/0.4998, allocations: 2.072 MB / 0.5396 GB, free: 4.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/0.4998, allocations: 4.062 kB / 0.5397 GB, free: 4.746 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002372/0.5022, allocations: 1.375 MB / 0.541 GB, free: 3.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.5048, allocations: 293.3 kB / 0.5413 GB, free: 3.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006017/0.5108, allocations: 3.878 MB / 0.5451 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009811/0.5118, allocations: 1.264 MB / 0.5463 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/0.5126, allocations: 267.5 kB / 0.5466 GB, free: 13.52 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5126, allocations: 0 / 0.5466 GB, free: 13.52 MB / 430.1 MB Notification: Performance of Templates: time 0.2422/0.7548, allocations: 56.53 MB / 0.6018 GB, free: 135.7 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)