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.0009707/0.0009707, allocations: 104.3 kB / 19.71 MB, free: 436 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.001046/0.001046, allocations: 212.3 kB / 23 MB, free: 2.969 MB / 13.93 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.9899/0.9899, allocations: 230.6 MB / 256.8 MB, free: 9.582 MB / 202.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.09003/0.09003, allocations: 17.17 MB / 330.4 MB, free: 0.707 MB / 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: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 67.89 kB / 460.8 MB, free: 26.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09574, allocations: 57.76 MB / 0.5064 GB, free: 1.125 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit): time 0.002889/0.09863, allocations: 2.7 MB / 0.5091 GB, free: 14.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002898/0.1015, allocations: 2.751 MB / 0.5118 GB, free: 11.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.1017, allocations: 15.88 kB / 0.5118 GB, free: 11.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.1018, allocations: 43.52 kB / 0.5118 GB, free: 11.59 MB / 378.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.0008053/0.1026, allocations: 410 kB / 0.5122 GB, free: 11.18 MB / 378.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.0005978/0.1032, allocations: 450 kB / 0.5126 GB, free: 10.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.1035, allocations: 322.5 kB / 0.5129 GB, free: 10.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1037, allocations: 36.81 kB / 0.513 GB, free: 10.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.1038, allocations: 123.5 kB / 0.5131 GB, free: 10.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.104, allocations: 131.4 kB / 0.5132 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.185e-05/0.104, allocations: 12 kB / 0.5132 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.828e-05/0.1041, allocations: 19.98 kB / 0.5132 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.343e-05/0.1041, allocations: 59.7 kB / 0.5133 GB, free: 10.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.1042, allocations: 95.53 kB / 0.5134 GB, free: 9.957 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.1045, allocations: 270.7 kB / 0.5137 GB, free: 9.691 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1045, allocations: 0 / 0.5137 GB, free: 9.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1045, allocations: 0 / 0.5137 GB, free: 9.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1045, allocations: 4 kB / 0.5137 GB, free: 9.688 MB / 378.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.0005974/0.1051, allocations: 480.9 kB / 0.5141 GB, free: 9.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1051, allocations: 8.031 kB / 0.5141 GB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.1052, allocations: 32.75 kB / 0.5142 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.1055, allocations: 257.4 kB / 0.5144 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1055, allocations: 12.38 kB / 0.5144 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.1056, allocations: 20.12 kB / 0.5144 GB, free: 8.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.1057, allocations: 126.2 kB / 0.5146 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1058, allocations: 0 / 0.5146 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.1058, allocations: 4 kB / 0.5146 GB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1058, allocations: 11.98 kB / 0.5146 GB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.1059, allocations: 95.88 kB / 0.5147 GB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006391/0.1065, allocations: 459.9 kB / 0.5151 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.1067, allocations: 114.5 kB / 0.5152 GB, free: 8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.782e-05/0.1068, allocations: 52.86 kB / 0.5153 GB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1068, allocations: 8 kB / 0.5153 GB, free: 7.938 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.1068, allocations: 30.56 kB / 0.5153 GB, free: 7.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1068, allocations: 0 / 0.5153 GB, free: 7.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002409/0.107, allocations: 165.4 kB / 0.5155 GB, free: 7.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.1071, allocations: 55.41 kB / 0.5155 GB, free: 7.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.1072, allocations: 261.8 kB / 0.5158 GB, free: 7.402 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.1073, allocations: 29.7 kB / 0.5158 GB, free: 7.367 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.794e-05/0.1073, allocations: 152.4 kB / 0.5159 GB, free: 7.215 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.1074, allocations: 39.67 kB / 0.516 GB, free: 7.176 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.1074, allocations: 45.66 kB / 0.516 GB, free: 7.125 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.1075, allocations: 334.8 kB / 0.5163 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.374e-05/0.1076, allocations: 51.84 kB / 0.5164 GB, free: 6.738 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-05/0.1076, allocations: 87.88 kB / 0.5165 GB, free: 6.637 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.1078, allocations: 140.4 kB / 0.5166 GB, free: 6.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1078, allocations: 0 / 0.5166 GB, free: 6.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002011/0.108, allocations: 189.4 kB / 0.5168 GB, free: 6.293 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.108, allocations: 11.22 kB / 0.5168 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.108, allocations: 8 kB / 0.5168 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.108, allocations: 0 / 0.5168 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.1082, allocations: 39.92 kB / 0.5168 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.1082, allocations: 7.984 kB / 0.5168 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.1082, allocations: 19.83 kB / 0.5169 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1082, allocations: 8 kB / 0.5169 GB, free: 6.203 MB / 378.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 8.269e-05/0.1083, allocations: 137.7 kB / 0.517 GB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.1083, allocations: 23.95 kB / 0.517 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.705e-05/0.1084, allocations: 29.7 kB / 0.517 GB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1084, allocations: 0 / 0.517 GB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1084, allocations: 0 / 0.517 GB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1084, allocations: 7.922 kB / 0.5171 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.1086, allocations: 189.2 kB / 0.5172 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.1086, allocations: 0 / 0.5172 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.369e-05/0.1086, allocations: 23.98 kB / 0.5173 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1086, allocations: 4 kB / 0.5173 GB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.1086, allocations: 0 / 0.5173 GB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1086, allocations: 0 / 0.5173 GB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1086, allocations: 4 kB / 0.5173 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.1089, allocations: 291.1 kB / 0.5175 GB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.1089, allocations: 27.88 kB / 0.5176 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.109, allocations: 8 kB / 0.5176 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.497e-05/0.109, allocations: 0 / 0.5176 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.047e-05/0.109, allocations: 7.984 kB / 0.5176 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.109, allocations: 4 kB / 0.5176 GB, free: 5.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.1091, allocations: 185.2 kB / 0.5178 GB, free: 5.219 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1091, allocations: 0 / 0.5178 GB, free: 5.219 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001833/0.1093, allocations: 55.83 kB / 0.5178 GB, free: 5.164 MB / 378.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.703e-05/0.1094, allocations: 95.25 kB / 0.5179 GB, free: 5.062 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001618/0.1096, allocations: 107.8 kB / 0.518 GB, free: 4.957 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1096, allocations: 0 / 0.518 GB, free: 4.957 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.268e-05/0.1096, allocations: 47.97 kB / 0.5181 GB, free: 4.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.1099, allocations: 59.56 kB / 0.5181 GB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000576/0.1105, allocations: 476.1 kB / 0.5186 GB, free: 4.359 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.494e-05/0.1106, allocations: 146 kB / 0.5187 GB, free: 4.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.1106, allocations: 19.44 kB / 0.5187 GB, free: 4.176 MB / 378.7 MB Notification: Performance of SimCode: time 6.42e-07/0.1106, allocations: 4 kB / 0.5187 GB, free: 4.172 MB / 378.7 MB Notification: Performance of Templates: time 0.003148/0.1138, allocations: 2.686 MB / 0.5214 GB, free: 1.496 MB / 378.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 > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_NormalInit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.349287326913327]