Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.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.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007761/0.007761, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.002051/0.002052, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.396/1.396, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.26/0.26, allocations: 15.31 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 370.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.107, allocations: 53.61 MB / 423.9 MB, free: 14.75 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.4137/0.5208, allocations: 23.29 MB / 447.2 MB, free: 40.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008134/0.5289, allocations: 9.164 MB / 456.4 MB, free: 35.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006795/0.5296, allocations: 14.25 kB / 456.4 MB, free: 35.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006977/0.5303, allocations: 215.4 kB / 456.6 MB, free: 35.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009385/0.5313, allocations: 305.2 kB / 456.9 MB, free: 35.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003699/0.535, allocations: 1.24 MB / 458.1 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009398/0.536, allocations: 0.6639 MB / 458.8 MB, free: 34.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.5363, allocations: 204.4 kB / 459 MB, free: 34.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.5365, allocations: 305.9 kB / 459.3 MB, free: 34.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.5369, allocations: 339.2 kB / 459.6 MB, free: 34.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.634e-05/0.537, allocations: 21.62 kB / 459.6 MB, free: 34.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003059/0.5401, allocations: 0.8113 MB / 460.5 MB, free: 34.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.5403, allocations: 108.9 kB / 460.6 MB, free: 34.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.5405, allocations: 241.2 kB / 460.8 MB, free: 34.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.5421, allocations: 1.086 MB / 461.9 MB, free: 33.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.5421, allocations: 0 / 461.9 MB, free: 33.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5421, allocations: 3.938 kB / 461.9 MB, free: 33.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.5421, allocations: 4 kB / 461.9 MB, free: 33.92 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001291/0.5434, allocations: 0.9368 MB / 462.8 MB, free: 33.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5435, allocations: 9.531 kB / 462.8 MB, free: 33.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007559/0.5442, allocations: 163.1 kB / 463 MB, free: 33.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.5447, allocations: 430.5 kB / 463.4 MB, free: 32.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.5448, allocations: 28.72 kB / 463.4 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.5448, allocations: 30.66 kB / 463.5 MB, free: 32.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00072/0.5456, allocations: 0.5298 MB / 464 MB, free: 32.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.5456, allocations: 10.91 kB / 464 MB, free: 32.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.5456, allocations: 11.06 kB / 464 MB, free: 32.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.5457, allocations: 12.81 kB / 464 MB, free: 32.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.5468, allocations: 0.8009 MB / 464.8 MB, free: 32.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.549, allocations: 1.873 MB / 466.7 MB, free: 31.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.5495, allocations: 220.1 kB / 466.9 MB, free: 30.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.5498, allocations: 138.4 kB / 467.1 MB, free: 30.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002977/0.5527, allocations: 2.711 MB / 469.8 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.5528, allocations: 39.19 kB / 469.8 MB, free: 28.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.5528, allocations: 0 / 469.8 MB, free: 28.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006133/0.5534, allocations: 296.2 kB / 470.1 MB, free: 28.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.5535, allocations: 52.41 kB / 470.1 MB, free: 28.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.554, allocations: 481.9 kB / 470.6 MB, free: 28.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.554, allocations: 27.08 kB / 470.6 MB, free: 28.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.5542, allocations: 287.7 kB / 470.9 MB, free: 27.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.755e-05/0.5542, allocations: 66.33 kB / 471 MB, free: 27.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.5544, allocations: 100.6 kB / 471.1 MB, free: 27.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.5544, allocations: 362.4 kB / 471.4 MB, free: 27.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.5546, allocations: 93.45 kB / 471.5 MB, free: 27.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.5549, allocations: 364.9 kB / 471.9 MB, free: 27.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004858/0.5554, allocations: 498 kB / 472.4 MB, free: 26.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.5554, allocations: 6.344 kB / 472.4 MB, free: 26.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007376/0.5561, allocations: 487.7 kB / 472.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.5562, allocations: 9.312 kB / 472.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5562, allocations: 9.062 kB / 472.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.341e-05/0.5562, allocations: 17.2 kB / 472.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.5566, allocations: 111.3 kB / 473 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.5566, allocations: 20.34 kB / 473 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003215/0.557, allocations: 57.36 kB / 473.1 MB, free: 26.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.71e-05/0.557, allocations: 37.78 kB / 473.1 MB, free: 26.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001748/0.5572, allocations: 178.6 kB / 473.3 MB, free: 26.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.5573, allocations: 45.97 kB / 473.3 MB, free: 26.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007574/0.5581, allocations: 393.7 kB / 473.7 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.5581, allocations: 1.25 kB / 473.7 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.5581, allocations: 4 kB / 473.7 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.5581, allocations: 0 / 473.7 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008363/0.5589, allocations: 0.7159 MB / 474.4 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.559, allocations: 2.281 kB / 474.4 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.559, allocations: 24.47 kB / 474.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.5591, allocations: 2.062 kB / 474.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.5591, allocations: 2.312 kB / 474.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.5591, allocations: 2.719 kB / 474.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5591, allocations: 1.094 kB / 474.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.5593, allocations: 201 kB / 474.7 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.5594, allocations: 134.4 kB / 474.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.5595, allocations: 8.344 kB / 474.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.5596, allocations: 2.969 kB / 474.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.5597, allocations: 10.03 kB / 474.8 MB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.5597, allocations: 6.875 kB / 474.8 MB, free: 25.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004415/0.5601, allocations: 409.6 kB / 475.2 MB, free: 24.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5601, allocations: 0 / 475.2 MB, free: 24.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008298/0.561, allocations: 251.6 kB / 475.5 MB, free: 24.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006744/0.5616, allocations: 402.2 kB / 475.9 MB, free: 24.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.5621, allocations: 219.8 kB / 476.1 MB, free: 24.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5621, allocations: 0 / 476.1 MB, free: 24.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.892e-05/0.5621, allocations: 36.03 kB / 476.1 MB, free: 24.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.5628, allocations: 116 kB / 476.2 MB, free: 24.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.564, allocations: 0.8224 MB / 477.1 MB, free: 23.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.5642, allocations: 0.8118 MB / 477.9 MB, free: 23.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.5644, allocations: 90.45 kB / 478 MB, free: 23.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5644, allocations: 3.938 kB / 478 MB, free: 23.19 MB / 366.1 MB Notification: Performance of Templates: time 0.01584/0.5803, allocations: 7.943 MB / 485.9 MB, free: 22.17 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)