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.001063/0.001063, allocations: 77.95 kB / 20.66 MB, free: 3.832 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.001352/0.001352, allocations: 165 kB / 24.05 MB, free: 452 kB / 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.011/1.011, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.05937/0.05937, allocations: 12.76 MB / 273.8 MB, free: 104 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.554e-06/2.554e-06, allocations: 0 / 348 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.596e-05/3.851e-05, allocations: 6.25 kB / 348 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.004702/0.004741, allocations: 2.865 MB / 350.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005395/0.01014, allocations: 2.762 MB / 353.7 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.01037, allocations: 11.88 kB / 353.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.01058, allocations: 51.5 kB / 353.7 MB, free: 11.11 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.001558/0.01213, allocations: 409.8 kB / 354.1 MB, free: 10.71 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.001231/0.01337, allocations: 450.5 kB / 354.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005407/0.01391, allocations: 334.3 kB / 354.9 MB, free: 9.941 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.01406, allocations: 36.91 kB / 354.9 MB, free: 9.906 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.01431, allocations: 155.6 kB / 355.1 MB, free: 9.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.01463, allocations: 123.6 kB / 355.2 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.01467, allocations: 16 kB / 355.2 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.489e-05/0.01475, allocations: 20 kB / 355.2 MB, free: 9.598 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-05/0.01482, allocations: 47.83 kB / 355.3 MB, free: 9.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.01493, allocations: 79.77 kB / 355.4 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.01529, allocations: 215.1 kB / 355.6 MB, free: 9.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.01529, allocations: 4 kB / 355.6 MB, free: 9.258 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.01529, allocations: 0 / 355.6 MB, free: 9.258 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.0153, allocations: 0 / 355.6 MB, free: 9.258 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.000772/0.01607, allocations: 0.5656 MB / 356.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.01611, allocations: 11.98 kB / 356.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.0163, allocations: 44.75 kB / 356.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000401/0.0167, allocations: 259.5 kB / 356.5 MB, free: 8.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.01672, allocations: 12.36 kB / 356.5 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.01676, allocations: 16.38 kB / 356.5 MB, free: 8.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.01692, allocations: 82.2 kB / 356.6 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.01694, allocations: 15.89 kB / 356.6 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.01695, allocations: 7.938 kB / 356.6 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.01696, allocations: 4 kB / 356.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.697e-05/0.01706, allocations: 35.95 kB / 356.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008606/0.01792, allocations: 459.7 kB / 357.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.01808, allocations: 82.92 kB / 357.2 MB, free: 7.574 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.338e-05/0.01813, allocations: 23.69 kB / 357.2 MB, free: 7.547 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.01815, allocations: 4 kB / 357.2 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.01818, allocations: 37.38 kB / 357.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.054e-06/0.01818, allocations: 0 / 357.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002478/0.01843, allocations: 109.5 kB / 357.3 MB, free: 7.383 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.01847, allocations: 59.39 kB / 357.4 MB, free: 7.312 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/0.01896, allocations: 288.2 kB / 357.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.01898, allocations: 29.7 kB / 357.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.0191, allocations: 207 kB / 357.9 MB, free: 6.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.01914, allocations: 43.64 kB / 357.9 MB, free: 6.727 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.01e-05/0.01921, allocations: 51.34 kB / 358 MB, free: 6.668 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.01935, allocations: 0.504 MB / 358.5 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.01939, allocations: 15.98 kB / 358.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.96e-05/0.01947, allocations: 76.91 kB / 358.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.01961, allocations: 108.9 kB / 358.7 MB, free: 5.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.01961, allocations: 0 / 358.7 MB, free: 5.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002279/0.01984, allocations: 145.3 kB / 358.8 MB, free: 5.762 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.01985, allocations: 8 kB / 358.8 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01986, allocations: 0 / 358.8 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.01987, allocations: 4 kB / 358.8 MB, free: 5.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.02005, allocations: 35.98 kB / 358.9 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.02006, allocations: 0 / 358.9 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.02017, allocations: 27.78 kB / 358.9 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.02019, allocations: 8 kB / 358.9 MB, free: 5.68 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.0001071/0.0203, allocations: 172.7 kB / 359.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.989e-05/0.02035, allocations: 23.86 kB / 359.1 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.0204, allocations: 25.78 kB / 359.1 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.0204, allocations: 3.984 kB / 359.1 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.0204, allocations: 3.984 kB / 359.1 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.02041, allocations: 4 kB / 359.1 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.02063, allocations: 149.2 kB / 359.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.02064, allocations: 0 / 359.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.02077, allocations: 31.88 kB / 359.3 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.02077, allocations: 7.922 kB / 359.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.02079, allocations: 4 kB / 359.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.02079, allocations: 4 kB / 359.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.02079, allocations: 0 / 359.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.02108, allocations: 259.7 kB / 359.6 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.539e-05/0.02116, allocations: 35.72 kB / 359.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.02119, allocations: 4 kB / 359.6 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.02131, allocations: 7.984 kB / 359.6 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.02133, allocations: 4 kB / 359.6 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.02134, allocations: 3.984 kB / 359.6 MB, free: 4.895 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001371/0.02148, allocations: 197 kB / 359.8 MB, free: 4.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.02148, allocations: 4.031 kB / 359.8 MB, free: 4.699 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003294/0.02181, allocations: 51.89 kB / 359.9 MB, free: 4.648 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.0001098/0.02192, allocations: 95.25 kB / 360 MB, free: 4.543 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.02208, allocations: 71.5 kB / 360.1 MB, free: 4.469 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.02209, allocations: 4 kB / 360.1 MB, free: 4.465 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.024e-05/0.02214, allocations: 36.16 kB / 360.1 MB, free: 4.426 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.02257, allocations: 52.94 kB / 360.1 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.001101/0.02367, allocations: 450 kB / 360.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.855e-05/0.02372, allocations: 88.31 kB / 360.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.694e-05/0.02378, allocations: 13.95 kB / 360.7 MB, free: 3.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.02389, allocations: 122.2 kB / 360.8 MB, free: 3.668 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02389, allocations: 3.938 kB / 360.8 MB, free: 3.664 MB / 282.7 MB Notification: Performance of Templates: time 0.0043/0.02819, allocations: 2.62 MB / 363.4 MB, free: 1.102 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.6455461061559618]