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.001288/0.001288, allocations: 102.9 kB / 16.27 MB, free: 5.996 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.0013/0.0013, allocations: 186.3 kB / 17.2 MB, free: 5.605 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08178/0.08178, allocations: 15.3 MB / 306.4 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 61.02 kB / 371 MB, free: 50.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 53.61 MB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.007256/0.1131, allocations: 8.545 MB / 433.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02666/0.1398, allocations: 23.26 MB / 456.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.1417, allocations: 19.88 kB / 456.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.1437, allocations: 0.5134 MB / 456.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007297/0.1511, allocations: 2.001 MB / 458.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009475/0.1606, allocations: 3.01 MB / 461.9 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004249/0.1649, allocations: 2.48 MB / 464.4 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00249/0.1674, allocations: 1.435 MB / 465.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.1697, allocations: 1.223 MB / 467.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.1724, allocations: 1.359 MB / 468.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007711/0.1732, allocations: 216 kB / 468.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01054/0.1838, allocations: 2.586 MB / 471.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.185, allocations: 0.5179 MB / 471.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002885/0.1879, allocations: 1.089 MB / 472.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01632/0.2043, allocations: 4.991 MB / 477.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.2044, allocations: 0 / 477.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.2044, allocations: 4 kB / 477.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.2045, allocations: 0 / 477.8 MB, free: 8.547 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.007086/0.2116, allocations: 2.658 MB / 480.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.2117, allocations: 11.97 kB / 480.5 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002121/0.2138, allocations: 417.8 kB / 480.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.2156, allocations: 0.9203 MB / 481.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.2159, allocations: 191.5 kB / 482 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003284/0.2162, allocations: 188.3 kB / 482.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004127/0.2204, allocations: 2.086 MB / 484.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.806e-05/0.2204, allocations: 11.88 kB / 484.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001931/0.2206, allocations: 72 kB / 484.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.075e-05/0.2207, allocations: 44 kB / 484.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004949/0.2256, allocations: 2.581 MB / 487 MB, free: 15.24 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.01356/0.2392, allocations: 6.377 MB / 493.4 MB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005417/0.2447, allocations: 2.539 MB / 495.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.2463, allocations: 0.8474 MB / 496.7 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01242/0.2588, allocations: 8.068 MB / 0.493 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.2589, allocations: 47.69 kB / 0.493 GB, free: 12.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.808e-06/0.2589, allocations: 4 kB / 0.493 GB, free: 12.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=150): time 0.02851/0.2874, allocations: 6.182 MB / 0.4991 GB, free: 5.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.431e-05/0.2875, allocations: 94.41 kB / 0.4992 GB, free: 5.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.289, allocations: 0.9373 MB / 0.5001 GB, free: 4.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002358/0.2892, allocations: 49.7 kB / 0.5001 GB, free: 4.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/0.2898, allocations: 0.8366 MB / 0.5009 GB, free: 3.797 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006584/0.2905, allocations: 0.5199 MB / 0.5014 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006564/0.2912, allocations: 367.3 kB / 0.5018 GB, free: 2.902 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2913, allocations: 305.1 kB / 0.5021 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.2923, allocations: 0.5272 MB / 0.5026 GB, free: 2.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.2939, allocations: 1.247 MB / 0.5038 GB, free: 496 kB / 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.2163/0.5103, allocations: 2.034 MB / 0.5058 GB, free: 77.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-05/0.5103, allocations: 6.469 kB / 0.5058 GB, free: 77.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.009095/0.5195, allocations: 2.547 MB / 0.5083 GB, free: 77.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.5195, allocations: 12.48 kB / 0.5083 GB, free: 77.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.29e-05/0.5196, allocations: 27.16 kB / 0.5083 GB, free: 77.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005558/0.5251, allocations: 0.7013 MB / 0.509 GB, free: 77.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/0.5274, allocations: 0.5247 MB / 0.5095 GB, free: 77.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.539, allocations: 8.257 MB / 0.5176 GB, free: 70.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.5409, allocations: 70.81 kB / 0.5177 GB, free: 70.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002422/0.5411, allocations: 111.5 kB / 0.5178 GB, free: 70.29 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.0008597/0.542, allocations: 380.3 kB / 0.5181 GB, free: 70.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003736/0.5424, allocations: 141.3 kB / 0.5183 GB, free: 70.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009002/0.5514, allocations: 2.475 MB / 0.5207 GB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/0.5514, allocations: 19.64 kB / 0.5207 GB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/0.5515, allocations: 2.812 kB / 0.5207 GB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.103e-05/0.5515, allocations: 7.688 kB / 0.5207 GB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005585/0.5571, allocations: 2.531 MB / 0.5232 GB, free: 67.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.5571, allocations: 3.656 kB / 0.5232 GB, free: 67.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/0.5587, allocations: 307.9 kB / 0.5235 GB, free: 67.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006403/0.5651, allocations: 0.7513 MB / 0.5242 GB, free: 67.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002572/0.5654, allocations: 39.56 kB / 0.5243 GB, free: 67.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/0.5759, allocations: 9.51 MB / 0.5335 GB, free: 59.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.5759, allocations: 3.938 kB / 0.5335 GB, free: 59.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008484/0.5844, allocations: 2.812 MB / 0.5363 GB, free: 57.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005091/0.585, allocations: 210 kB / 0.5365 GB, free: 57.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.5852, allocations: 29.03 kB / 0.5365 GB, free: 57.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008309/0.5861, allocations: 34.66 kB / 0.5366 GB, free: 57.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003401/0.5864, allocations: 124.7 kB / 0.5367 GB, free: 57.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.445e-05/0.5865, allocations: 50.61 kB / 0.5367 GB, free: 57.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008413/0.5874, allocations: 0.6324 MB / 0.5373 GB, free: 57.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5874, allocations: 4 kB / 0.5373 GB, free: 57.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003715/0.5911, allocations: 1.051 MB / 0.5384 GB, free: 56.89 MB / 382.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.00198/0.5931, allocations: 1.096 MB / 0.5394 GB, free: 56.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004095/0.5972, allocations: 2.157 MB / 0.5415 GB, free: 54.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5972, allocations: 0 / 0.5415 GB, free: 54.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.5991, allocations: 1.366 MB / 0.5429 GB, free: 52.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.6007, allocations: 332.2 kB / 0.5432 GB, free: 52.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.6058, allocations: 3.074 MB / 0.5462 GB, free: 49.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007196/0.6065, allocations: 1.258 MB / 0.5474 GB, free: 48.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007013/0.6072, allocations: 271.3 kB / 0.5477 GB, free: 47.89 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.6072, allocations: 0 / 0.5477 GB, free: 47.89 MB / 382.1 MB Notification: Performance of Templates: time 0.05241/0.6596, allocations: 56.65 MB / 0.603 GB, free: 7.332 MB / 398.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)