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.001057/0.001057, allocations: 80.88 kB / 20.8 MB, free: 3.656 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.001802/0.001802, allocations: 165 kB / 24.22 MB, free: 244 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.096/1.096, allocations: 177.2 MB / 204.7 MB, free: 5.477 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.05913/0.05913, allocations: 12.77 MB / 273.9 MB, free: 152 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.583e-06/1.583e-06, allocations: 0 / 295 MB, free: 11.82 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/2.081e-05, allocations: 3.969 kB / 295 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.003131/0.003152, allocations: 2.897 MB / 297.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003232/0.006384, allocations: 2.814 MB / 300.7 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.006518, allocations: 16.28 kB / 300.7 MB, free: 8.105 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.006679, allocations: 48.42 kB / 300.8 MB, free: 8.074 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.0008981/0.007577, allocations: 389 kB / 301.2 MB, free: 7.867 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.0007571/0.008334, allocations: 431.6 kB / 301.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.008668, allocations: 338.6 kB / 301.9 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.008781, allocations: 31.95 kB / 301.9 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.008966, allocations: 162 kB / 302.1 MB, free: 7.414 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.009208, allocations: 115.4 kB / 302.2 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.009234, allocations: 14.88 kB / 302.2 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.7e-05/0.009311, allocations: 18.09 kB / 302.2 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.198e-05/0.009363, allocations: 64.94 kB / 302.3 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.009435, allocations: 78.38 kB / 302.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.009676, allocations: 213.2 kB / 302.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.009678, allocations: 0 / 302.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.009679, allocations: 0 / 302.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.009684, allocations: 0 / 302.6 MB, free: 7.219 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.0004717/0.01016, allocations: 449.5 kB / 303 MB, free: 6.863 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.01019, allocations: 13.58 kB / 303 MB, free: 6.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.01032, allocations: 33.98 kB / 303.1 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.01061, allocations: 250.2 kB / 303.3 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.01062, allocations: 9.938 kB / 303.3 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.01065, allocations: 22.38 kB / 303.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.01079, allocations: 94.66 kB / 303.5 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.0108, allocations: 5.344 kB / 303.5 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.01081, allocations: 5.281 kB / 303.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.01081, allocations: 2.812 kB / 303.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.543e-05/0.01087, allocations: 34.97 kB / 303.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.01133, allocations: 334 kB / 303.8 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.01144, allocations: 115.6 kB / 303.9 MB, free: 6.281 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.806e-05/0.01147, allocations: 20.28 kB / 304 MB, free: 6.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.01148, allocations: 6.047 kB / 304 MB, free: 6.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.0115, allocations: 36.22 kB / 304 MB, free: 6.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.0115, allocations: 0 / 304 MB, free: 6.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001464/0.01165, allocations: 88.86 kB / 304.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.12e-05/0.01167, allocations: 52.81 kB / 304.1 MB, free: 6.121 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.01179, allocations: 237 kB / 304.4 MB, free: 5.973 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.384e-06/0.0118, allocations: 29.7 kB / 304.4 MB, free: 5.938 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.465e-05/0.01184, allocations: 143.8 kB / 304.5 MB, free: 5.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.01186, allocations: 43 kB / 304.6 MB, free: 5.781 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.0119, allocations: 51.33 kB / 304.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.01197, allocations: 339.4 kB / 305 MB, free: 5.414 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.746e-05/0.01199, allocations: 15.89 kB / 305 MB, free: 5.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.865e-05/0.01203, allocations: 51.39 kB / 305 MB, free: 5.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.852e-05/0.01211, allocations: 90.48 kB / 305.1 MB, free: 5.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01211, allocations: 3.938 kB / 305.1 MB, free: 5.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001517/0.01227, allocations: 115.7 kB / 305.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.01228, allocations: 6.109 kB / 305.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.01229, allocations: 1.375 kB / 305.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.01231, allocations: 3.5 kB / 305.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.01254, allocations: 52.03 kB / 305.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.01255, allocations: 4.484 kB / 305.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.263e-05/0.01261, allocations: 21.39 kB / 305.3 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.01262, allocations: 4.125 kB / 305.3 MB, free: 5.223 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 6.074e-05/0.01268, allocations: 128.2 kB / 305.4 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.01271, allocations: 14.08 kB / 305.5 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.859e-05/0.01275, allocations: 27.66 kB / 305.5 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.01275, allocations: 1.375 kB / 305.5 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.01275, allocations: 0 / 305.5 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01276, allocations: 4.641 kB / 305.5 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.01291, allocations: 124.5 kB / 305.6 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.01292, allocations: 8.641 kB / 305.6 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.01306, allocations: 38.89 kB / 305.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.01306, allocations: 1.562 kB / 305.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.01307, allocations: 5.312 kB / 305.7 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.01307, allocations: 0.7031 kB / 305.7 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01308, allocations: 1.438 kB / 305.7 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.01327, allocations: 238.7 kB / 305.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.01331, allocations: 30.69 kB / 305.9 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.01333, allocations: 5.891 kB / 305.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.01339, allocations: 2.531 kB / 305.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.0134, allocations: 9.109 kB / 306 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.01341, allocations: 7.406 kB / 306 MB, free: 4.734 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.704e-05/0.01349, allocations: 80.72 kB / 306 MB, free: 4.711 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01349, allocations: 3.938 kB / 306 MB, free: 4.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001795/0.01366, allocations: 48.72 kB / 306.1 MB, free: 4.699 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 7.582e-05/0.01374, allocations: 84.06 kB / 306.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.01387, allocations: 57.48 kB / 306.2 MB, free: 4.602 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.01388, allocations: 3 kB / 306.2 MB, free: 4.602 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.096e-05/0.01391, allocations: 38.06 kB / 306.3 MB, free: 4.578 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.01415, allocations: 61.78 kB / 306.3 MB, free: 4.551 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.001095/0.01524, allocations: 451.1 kB / 306.8 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.179e-05/0.01528, allocations: 82.66 kB / 306.8 MB, free: 4.148 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.09e-05/0.01536, allocations: 25.34 kB / 306.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.01548, allocations: 90.72 kB / 307 MB, free: 4.074 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01548, allocations: 0 / 307 MB, free: 4.074 MB / 266.7 MB Notification: Performance of Templates: time 0.004483/0.01996, allocations: 2.687 MB / 309.6 MB, free: 2.094 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.9292498705908656]