Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.037/1.037, allocations: 177.1 MB / 203.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.07487/0.07487, allocations: 12.75 MB / 272.7 MB, free: 284 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 346.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.416e-05/3.612e-05, allocations: 12.58 kB / 346.8 MB, free: 1.117 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.004039/0.004076, allocations: 2.884 MB / 349.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004036/0.008111, allocations: 2.844 MB / 352.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.008368, allocations: 19.81 kB / 352.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.008583, allocations: 51.5 kB / 352.6 MB, free: 11.29 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.UnitConversions.findUnit'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.UnitConversions.findUnit' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5637:15-5729:17:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.001374/0.009957, allocations: 405.8 kB / 353 MB, free: 10.89 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.A.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.writeReal' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5845:15-5881:24:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.01115, allocations: 446.6 kB / 353.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.01168, allocations: 334.3 kB / 353.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.01186, allocations: 36.92 kB / 353.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.0121, allocations: 159.5 kB / 354 MB, free: 9.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.01242, allocations: 119.6 kB / 354.1 MB, free: 9.812 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.01246, allocations: 16 kB / 354.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.01254, allocations: 20 kB / 354.1 MB, free: 9.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.01261, allocations: 51.77 kB / 354.2 MB, free: 9.727 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.01271, allocations: 79.77 kB / 354.2 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.01309, allocations: 207.2 kB / 354.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.01309, allocations: 0 / 354.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.01309, allocations: 0 / 354.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.0131, allocations: 0 / 354.4 MB, free: 9.445 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008232/0.01392, allocations: 0.5734 MB / 355 MB, free: 8.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.01398, allocations: 15.92 kB / 355 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.01424, allocations: 44.75 kB / 355.1 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.01463, allocations: 259.6 kB / 355.3 MB, free: 8.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.01465, allocations: 12.36 kB / 355.3 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.01468, allocations: 20.31 kB / 355.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.01487, allocations: 90.2 kB / 355.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.01489, allocations: 7.891 kB / 355.5 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.0149, allocations: 4 kB / 355.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.01491, allocations: 4 kB / 355.5 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.298e-05/0.015, allocations: 51.95 kB / 355.5 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008288/0.01583, allocations: 0.4913 MB / 356 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.01601, allocations: 75.08 kB / 356.1 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.093e-05/0.01606, allocations: 31.67 kB / 356.1 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.01608, allocations: 7.984 kB / 356.1 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.01611, allocations: 41.33 kB / 356.2 MB, free: 7.598 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.495e-06/0.01611, allocations: 0 / 356.2 MB, free: 7.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002701/0.01638, allocations: 117.5 kB / 356.3 MB, free: 7.477 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.01641, allocations: 51.41 kB / 356.3 MB, free: 7.414 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.01663, allocations: 296.3 kB / 356.6 MB, free: 7.105 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.01665, allocations: 29.7 kB / 356.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.01677, allocations: 203 kB / 356.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.01681, allocations: 43.64 kB / 356.9 MB, free: 6.824 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.286e-05/0.01688, allocations: 43.36 kB / 356.9 MB, free: 6.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.01706, allocations: 0.504 MB / 357.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.974e-05/0.01711, allocations: 23.98 kB / 357.5 MB, free: 6.234 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.253e-05/0.0172, allocations: 84.3 kB / 357.5 MB, free: 6.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.01734, allocations: 113.4 kB / 357.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.01734, allocations: 0 / 357.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002069/0.01755, allocations: 157.5 kB / 357.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.01756, allocations: 7.938 kB / 357.8 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.01757, allocations: 4 kB / 357.8 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.01759, allocations: 0 / 357.8 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.01774, allocations: 39.92 kB / 357.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.01775, allocations: 4 kB / 357.9 MB, free: 5.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.217e-05/0.01782, allocations: 19.84 kB / 357.9 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.01783, allocations: 8 kB / 357.9 MB, free: 5.754 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (21): * Single equations (assignments): 21 * 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.0001019/0.01793, allocations: 172.4 kB / 358.1 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.01796, allocations: 27.86 kB / 358.1 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.696e-05/0.01801, allocations: 29.8 kB / 358.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01801, allocations: 0 / 358.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.01802, allocations: 0 / 358.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.01802, allocations: 4 kB / 358.1 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.01823, allocations: 196.5 kB / 358.3 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.01823, allocations: 0 / 358.3 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.01833, allocations: 20 kB / 358.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.01833, allocations: 0 / 358.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.01836, allocations: 7.984 kB / 358.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.01836, allocations: 0 / 358.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.01836, allocations: 0 / 358.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.01865, allocations: 283.5 kB / 358.6 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.0187, allocations: 31.78 kB / 358.6 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.01873, allocations: 4 kB / 358.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.634e-05/0.01879, allocations: 7.984 kB / 358.7 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.01882, allocations: 4 kB / 358.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-06/0.01883, allocations: 3.984 kB / 358.7 MB, free: 4.914 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.01895, allocations: 201.1 kB / 358.9 MB, free: 4.719 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.01895, allocations: 4 kB / 358.9 MB, free: 4.715 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002124/0.01916, allocations: 47.95 kB / 358.9 MB, free: 4.668 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.state,B.state) * 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 (11): * Single equations (assignments): 11 * 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.0001014/0.01926, allocations: 95.28 kB / 359 MB, free: 4.562 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.01943, allocations: 87.45 kB / 359.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.01943, allocations: 0 / 359.1 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.804e-05/0.01947, allocations: 36.16 kB / 359.1 MB, free: 4.434 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.01979, allocations: 66.38 kB / 359.2 MB, free: 4.371 MB / 282.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit kcal/min: Unit not found Error: Error parsing unit kcal/mol: Unit not found Error: Error parsing unit %: Parse error Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.02109, allocations: 450.4 kB / 359.6 MB, free: 3.906 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.622e-05/0.02115, allocations: 84.31 kB / 359.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.091e-05/0.02124, allocations: 25.94 kB / 359.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.02129, allocations: 20.5 kB / 359.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of SimCode: time 1.182e-06/0.02129, allocations: 0 / 359.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of Templates: time 0.00568/0.02697, allocations: 2.508 MB / 362.3 MB, free: 1.297 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.sim & ./Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9787808507680893]