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.001014/0.001014, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001766/0.001766, allocations: 173 kB / 23.36 MB, free: 1.133 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.054/1.054, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.06876/0.06876, allocations: 12.76 MB / 273 MB, free: 176 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.193e-06/1.193e-06, allocations: 0 / 294 MB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.778e-05/1.898e-05, allocations: 4.125 kB / 294 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.002937/0.002956, allocations: 2.864 MB / 296.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003236/0.006192, allocations: 2.814 MB / 299.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.006368, allocations: 16.84 kB / 299.7 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.006521, allocations: 49.5 kB / 299.7 MB, free: 8.203 MB / 266.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.001108/0.00763, allocations: 418.5 kB / 300.2 MB, free: 7.988 MB / 266.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.0008799/0.008509, allocations: 452.7 kB / 300.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.008877, allocations: 329.9 kB / 300.9 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.008988, allocations: 32.28 kB / 300.9 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.009173, allocations: 164.6 kB / 301.1 MB, free: 7.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.009417, allocations: 116.5 kB / 301.2 MB, free: 7.508 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.009444, allocations: 18.25 kB / 301.2 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.978e-05/0.009504, allocations: 17.83 kB / 301.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.00956, allocations: 60.41 kB / 301.3 MB, free: 7.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.774e-05/0.009628, allocations: 79.55 kB / 301.4 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.00988, allocations: 204.1 kB / 301.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.009883, allocations: 3.938 kB / 301.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.009884, allocations: 0 / 301.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.00989, allocations: 1.375 kB / 301.6 MB, free: 7.348 MB / 266.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.0005089/0.0104, allocations: 456.6 kB / 302 MB, free: 6.984 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.01043, allocations: 14.19 kB / 302.1 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.01055, allocations: 38.95 kB / 302.1 MB, free: 6.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.01081, allocations: 233.9 kB / 302.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.01083, allocations: 17.44 kB / 302.3 MB, free: 6.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.01085, allocations: 18.17 kB / 302.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.01098, allocations: 92.09 kB / 302.5 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.011, allocations: 3.938 kB / 302.5 MB, free: 6.727 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.01101, allocations: 5.312 kB / 302.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.01101, allocations: 4.609 kB / 302.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.828e-05/0.01107, allocations: 30.53 kB / 302.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.01155, allocations: 343.2 kB / 302.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.01165, allocations: 119.1 kB / 302.9 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.553e-05/0.01168, allocations: 17.81 kB / 303 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.01169, allocations: 6.656 kB / 303 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.01171, allocations: 35.88 kB / 303 MB, free: 6.348 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.01171, allocations: 1.281 kB / 303 MB, free: 6.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001428/0.01185, allocations: 87.06 kB / 303.1 MB, free: 6.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.837e-05/0.01187, allocations: 52.81 kB / 303.1 MB, free: 6.246 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.01199, allocations: 238.9 kB / 303.4 MB, free: 6.094 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-06/0.012, allocations: 31.11 kB / 303.4 MB, free: 6.059 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.062e-05/0.01204, allocations: 144.5 kB / 303.5 MB, free: 5.934 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.01206, allocations: 37.33 kB / 303.6 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.01211, allocations: 45.41 kB / 303.6 MB, free: 5.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.952e-05/0.01215, allocations: 331.8 kB / 304 MB, free: 5.551 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.749e-05/0.01217, allocations: 17.03 kB / 304 MB, free: 5.547 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.728e-05/0.01221, allocations: 57.02 kB / 304 MB, free: 5.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.902e-05/0.01229, allocations: 102.5 kB / 304.1 MB, free: 5.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.01229, allocations: 5.312 kB / 304.1 MB, free: 5.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001237/0.01242, allocations: 113.4 kB / 304.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.01243, allocations: 5.5 kB / 304.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.01243, allocations: 1.938 kB / 304.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.01244, allocations: 2.75 kB / 304.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.01256, allocations: 48.64 kB / 304.3 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.01256, allocations: 5.25 kB / 304.3 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.705e-05/0.01262, allocations: 17.39 kB / 304.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.01263, allocations: 4.969 kB / 304.3 MB, free: 5.34 MB / 266.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 5.043e-05/0.01268, allocations: 120 kB / 304.4 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.0127, allocations: 17.47 kB / 304.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.01274, allocations: 32.2 kB / 304.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.01274, allocations: 1.375 kB / 304.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.01274, allocations: 0 / 304.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01274, allocations: 0.6094 kB / 304.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.01287, allocations: 123.8 kB / 304.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.01287, allocations: 2.125 kB / 304.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.01294, allocations: 20.03 kB / 304.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.01295, allocations: 4.969 kB / 304.6 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.01296, allocations: 5.516 kB / 304.6 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.01296, allocations: 0 / 304.6 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01296, allocations: 1.312 kB / 304.6 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.01311, allocations: 244.7 kB / 304.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.01315, allocations: 31.41 kB / 304.9 MB, free: 4.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.01317, allocations: 5.594 kB / 304.9 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.343e-05/0.01323, allocations: 6.422 kB / 304.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.01324, allocations: 6.172 kB / 304.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.01325, allocations: 5.5 kB / 304.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.875e-05/0.01331, allocations: 80.59 kB / 305 MB, free: 4.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01331, allocations: 0 / 305 MB, free: 4.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001671/0.01348, allocations: 44.38 kB / 305.1 MB, free: 4.836 MB / 266.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 6.884e-05/0.01355, allocations: 73.12 kB / 305.1 MB, free: 4.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.01366, allocations: 70.52 kB / 305.2 MB, free: 4.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.01366, allocations: 1.625 kB / 305.2 MB, free: 4.746 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.854e-05/0.01369, allocations: 34.55 kB / 305.2 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.01393, allocations: 51.3 kB / 305.3 MB, free: 4.711 MB / 266.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.0009904/0.01492, allocations: 467.6 kB / 305.7 MB, free: 4.387 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.034e-05/0.01496, allocations: 82.75 kB / 305.8 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.129e-05/0.01503, allocations: 20.86 kB / 305.8 MB, free: 4.289 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.907e-05/0.01513, allocations: 94.19 kB / 305.9 MB, free: 4.23 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01513, allocations: 0 / 305.9 MB, free: 4.23 MB / 266.7 MB Notification: Performance of Templates: time 0.004218/0.01935, allocations: 2.608 MB / 308.5 MB, free: 2.316 MB / 266.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.862611752934754]