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.0008711/0.0008711, 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.0008852/0.0008852, allocations: 173 kB / 23.03 MB, free: 1.543 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 0.9116/0.9116, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.07305/0.07305, allocations: 12.76 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 2.064e-06/2.064e-06, allocations: 0 / 346.8 MB, free: 1.121 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.402e-05, allocations: 6.312 kB / 346.8 MB, free: 1.113 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.002778/0.002802, allocations: 2.88 MB / 349.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.006251, allocations: 2.844 MB / 352.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.006451, allocations: 15.81 kB / 352.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.006624, allocations: 47.52 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.001078/0.007703, allocations: 417.7 kB / 353 MB, free: 10.88 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.0008332/0.008536, allocations: 446.5 kB / 353.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003719/0.008908, allocations: 330.4 kB / 353.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.009037, allocations: 32.92 kB / 353.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.009203, allocations: 163.5 kB / 354 MB, free: 9.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.00944, allocations: 127.6 kB / 354.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.009468, allocations: 12 kB / 354.1 MB, free: 9.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.009523, allocations: 20 kB / 354.1 MB, free: 9.773 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.009577, allocations: 55.75 kB / 354.2 MB, free: 9.719 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.499e-05/0.009652, allocations: 79.77 kB / 354.2 MB, free: 9.641 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.009943, allocations: 203.2 kB / 354.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.009946, allocations: 0 / 354.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.009947, allocations: 0 / 354.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.009953, allocations: 0 / 354.4 MB, free: 9.441 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.0005969/0.01055, allocations: 0.5695 MB / 355 MB, free: 8.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.01059, allocations: 15.98 kB / 355 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.01075, allocations: 48.73 kB / 355.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.01106, allocations: 251.6 kB / 355.3 MB, free: 8.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.01108, allocations: 20.3 kB / 355.3 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.01111, allocations: 16.38 kB / 355.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.01126, allocations: 90.2 kB / 355.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.01127, allocations: 11.89 kB / 355.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.01128, allocations: 3.938 kB / 355.5 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.01129, allocations: 4 kB / 355.5 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.257e-05/0.01138, allocations: 47.95 kB / 355.5 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007083/0.01208, allocations: 0.4991 MB / 356 MB, free: 7.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.01222, allocations: 75.06 kB / 356.1 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.137e-05/0.01226, allocations: 23.69 kB / 356.1 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.01228, allocations: 7.984 kB / 356.1 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.0123, allocations: 41.33 kB / 356.2 MB, free: 7.598 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.044e-06/0.01231, allocations: 4 kB / 356.2 MB, free: 7.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.000227/0.01253, allocations: 117.5 kB / 356.3 MB, free: 7.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.01256, allocations: 55.41 kB / 356.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.01277, allocations: 288.3 kB / 356.6 MB, free: 7.105 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.01278, allocations: 29.7 kB / 356.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.01287, allocations: 207 kB / 356.8 MB, free: 6.863 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.0129, allocations: 39.66 kB / 356.9 MB, free: 6.824 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.01295, allocations: 43.36 kB / 356.9 MB, free: 6.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.01307, allocations: 0.5079 MB / 357.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.002e-05/0.01311, allocations: 15.98 kB / 357.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.147e-05/0.01318, allocations: 88.28 kB / 357.5 MB, free: 6.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.0133, allocations: 116.9 kB / 357.7 MB, free: 5.992 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.0133, allocations: 0 / 357.7 MB, free: 5.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001695/0.01347, allocations: 153.3 kB / 357.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.01348, allocations: 4 kB / 357.8 MB, free: 5.832 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01349, allocations: 8.156 kB / 357.8 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.01351, allocations: 0 / 357.8 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.01364, allocations: 39.92 kB / 357.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.01365, allocations: 8 kB / 357.9 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.438e-05/0.01372, allocations: 23.83 kB / 357.9 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.01373, allocations: 4 kB / 357.9 MB, free: 5.75 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 7.937e-05/0.0138, allocations: 172.5 kB / 358.1 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.01384, allocations: 23.86 kB / 358.1 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.01388, allocations: 29.77 kB / 358.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01388, allocations: 0 / 358.1 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01388, allocations: 4 kB / 358.1 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01389, allocations: 0 / 358.1 MB, free: 5.516 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.01406, allocations: 204.4 kB / 358.3 MB, free: 5.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.01406, allocations: 0 / 358.3 MB, free: 5.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.802e-05/0.01414, allocations: 19.98 kB / 358.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.01414, allocations: 0 / 358.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.01416, allocations: 4 kB / 358.3 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.01416, allocations: 0 / 358.3 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.01416, allocations: 0 / 358.3 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.0144, allocations: 276 kB / 358.6 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.01445, allocations: 39.81 kB / 358.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.01447, allocations: 7.984 kB / 358.6 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.716e-05/0.01453, allocations: 4 kB / 358.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.93e-05/0.01456, allocations: 7.922 kB / 358.7 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.01457, allocations: 8 kB / 358.7 MB, free: 4.902 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001083/0.01467, allocations: 201.1 kB / 358.9 MB, free: 4.707 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01467, allocations: 0 / 358.9 MB, free: 4.707 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001981/0.01487, allocations: 47.95 kB / 358.9 MB, free: 4.66 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 8.627e-05/0.01496, allocations: 91.25 kB / 359 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.01512, allocations: 87.45 kB / 359.1 MB, free: 4.469 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01512, allocations: 0 / 359.1 MB, free: 4.469 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.4e-05/0.01515, allocations: 35.67 kB / 359.1 MB, free: 4.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.01546, allocations: 59.14 kB / 359.2 MB, free: 4.375 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.001281/0.01674, allocations: 450.4 kB / 359.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.097e-05/0.0168, allocations: 84.31 kB / 359.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.385e-05/0.01689, allocations: 25.94 kB / 359.7 MB, free: 3.781 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.01694, allocations: 24.5 kB / 359.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01694, allocations: 0 / 359.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of Templates: time 0.004951/0.02189, allocations: 2.509 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.824303519912064]