Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.SimpleReaction.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.001073/0.001073, allocations: 100.4 kB / 19.7 MB, free: 444 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.001223/0.001223, allocations: 217.2 kB / 23 MB, free: 2.973 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 1.062/1.062, allocations: 230.6 MB / 256.8 MB, free: 9.605 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.06317/0.06317, allocations: 17.16 MB / 330.4 MB, free: 0.7148 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.Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") translateModel(Bodylight.Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.SimpleReaction") [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.00154/0.00154, allocations: 71.89 kB / 460.7 MB, free: 27.15 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.091, allocations: 57.76 MB / 0.5063 GB, free: 1.293 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.003096/0.0941, allocations: 2.525 MB / 0.5087 GB, free: 14.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.09694, allocations: 2.711 MB / 0.5114 GB, free: 12.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.09707, allocations: 11.88 kB / 0.5114 GB, free: 12.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.09724, allocations: 35.59 kB / 0.5114 GB, free: 11.98 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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.SimpleReaction.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0008091/0.09805, allocations: 402.1 kB / 0.5118 GB, free: 11.59 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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.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.Chemical.Examples.SimpleReaction.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.0986, allocations: 438.3 kB / 0.5122 GB, free: 11.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.09886, allocations: 286.6 kB / 0.5125 GB, free: 10.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.09898, allocations: 28.58 kB / 0.5125 GB, free: 10.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.769e-05/0.09907, allocations: 103.6 kB / 0.5126 GB, free: 10.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.09925, allocations: 111.5 kB / 0.5127 GB, free: 10.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.09927, allocations: 12 kB / 0.5127 GB, free: 10.63 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.458e-05/0.09932, allocations: 19.98 kB / 0.5128 GB, free: 10.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.329e-05/0.09938, allocations: 39.84 kB / 0.5128 GB, free: 10.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.41e-05/0.09944, allocations: 87.55 kB / 0.5129 GB, free: 10.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.09969, allocations: 242.9 kB / 0.5131 GB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.09969, allocations: 0 / 0.5131 GB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.09969, allocations: 0 / 0.5131 GB, free: 10.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.0997, allocations: 0 / 0.5131 GB, free: 10.25 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000552/0.1003, allocations: 453.1 kB / 0.5136 GB, free: 9.773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1003, allocations: 8.031 kB / 0.5136 GB, free: 9.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1004, allocations: 40.73 kB / 0.5136 GB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.1007, allocations: 229.1 kB / 0.5138 GB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1007, allocations: 8.375 kB / 0.5138 GB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.1007, allocations: 24.06 kB / 0.5138 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.1009, allocations: 113.6 kB / 0.514 GB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1009, allocations: 0 / 0.514 GB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.1009, allocations: 4 kB / 0.514 GB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.1009, allocations: 4 kB / 0.514 GB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.777e-05/0.101, allocations: 71.95 kB / 0.514 GB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.1016, allocations: 420.1 kB / 0.5144 GB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.1017, allocations: 102.5 kB / 0.5145 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.982e-05/0.1018, allocations: 44.84 kB / 0.5146 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.1018, allocations: 11.92 kB / 0.5146 GB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.1018, allocations: 34.5 kB / 0.5146 GB, free: 8.602 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.1018, allocations: 0 / 0.5146 GB, free: 8.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002424/0.1021, allocations: 145.5 kB / 0.5148 GB, free: 8.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.1021, allocations: 55.41 kB / 0.5148 GB, free: 8.387 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.1025, allocations: 249.8 kB / 0.515 GB, free: 8.133 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1025, allocations: 25.7 kB / 0.5151 GB, free: 8.102 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.051e-05/0.1026, allocations: 152.3 kB / 0.5152 GB, free: 7.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.1026, allocations: 39.69 kB / 0.5153 GB, free: 7.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/0.1027, allocations: 37.7 kB / 0.5153 GB, free: 7.867 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.552e-05/0.1028, allocations: 330.8 kB / 0.5156 GB, free: 7.535 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.1028, allocations: 47.86 kB / 0.5157 GB, free: 7.488 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.038e-05/0.1029, allocations: 83.53 kB / 0.5157 GB, free: 7.391 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.103, allocations: 132.2 kB / 0.5159 GB, free: 7.246 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.103, allocations: 8 kB / 0.5159 GB, free: 7.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001766/0.1032, allocations: 165.4 kB / 0.516 GB, free: 7.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1032, allocations: 15.28 kB / 0.516 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1032, allocations: 0 / 0.516 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1032, allocations: 4 kB / 0.516 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.1033, allocations: 39.92 kB / 0.5161 GB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.1034, allocations: 7.938 kB / 0.5161 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.1034, allocations: 19.98 kB / 0.5161 GB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.1034, allocations: 12 kB / 0.5161 GB, free: 6.977 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 (20): * Single equations (assignments): 20 * 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.417e-05/0.1035, allocations: 129.8 kB / 0.5162 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.1035, allocations: 23.8 kB / 0.5163 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.1036, allocations: 25.7 kB / 0.5163 GB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1036, allocations: 4 kB / 0.5163 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1036, allocations: 0 / 0.5163 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1036, allocations: 0 / 0.5163 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.1037, allocations: 181.2 kB / 0.5165 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1037, allocations: 4 kB / 0.5165 GB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.1038, allocations: 16 kB / 0.5165 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1038, allocations: 7.984 kB / 0.5165 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1038, allocations: 7.938 kB / 0.5165 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1038, allocations: 0 / 0.5165 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1038, allocations: 3.938 kB / 0.5165 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.104, allocations: 263.3 kB / 0.5168 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.73e-05/0.1041, allocations: 27.88 kB / 0.5168 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.1041, allocations: 7.938 kB / 0.5168 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.593e-05/0.1042, allocations: 7.984 kB / 0.5168 GB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.015e-05/0.1042, allocations: 7.922 kB / 0.5168 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1042, allocations: 4 kB / 0.5168 GB, free: 6.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001002/0.1043, allocations: 181.3 kB / 0.517 GB, free: 6.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1043, allocations: 0 / 0.517 GB, free: 6.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001758/0.1045, allocations: 40 kB / 0.517 GB, free: 5.996 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 (10): * Single equations (assignments): 10 * 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.008e-05/0.1045, allocations: 95.19 kB / 0.5171 GB, free: 5.895 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001465/0.1047, allocations: 103.8 kB / 0.5172 GB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1047, allocations: 0 / 0.5172 GB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.1047, allocations: 40.02 kB / 0.5172 GB, free: 5.754 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.105, allocations: 52.7 kB / 0.5173 GB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000524/0.1055, allocations: 439.1 kB / 0.5177 GB, free: 5.242 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.799e-05/0.1056, allocations: 137.4 kB / 0.5178 GB, free: 5.086 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.156e-05/0.1057, allocations: 19.44 kB / 0.5179 GB, free: 5.066 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1057, allocations: 0 / 0.5179 GB, free: 5.066 MB / 378.7 MB Notification: Performance of Templates: time 0.00287/0.1085, allocations: 2.377 MB / 0.5202 GB, free: 2.699 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.SimpleReaction.sim & ./Bodylight_Bodylight.Chemical.Examples.SimpleReaction > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.131013334728777]