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.0006456/0.0006456, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008442/0.00149, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006875/0.0006875, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008601/0.001548, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.922/0.922, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0844/1.006, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.05286/0.05286, allocations: 12.75 MB / 256.9 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007911/0.06077, allocations: 4.833 MB / 261.7 MB, free: 13.15 MB / 266.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: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 263 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.204e-05/1.334e-05, allocations: 6.312 kB / 263 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002462/0.002475, allocations: 2.746 MB / 265.7 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.005372, allocations: 2.781 MB / 268.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.005485, allocations: 19.75 kB / 268.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.382e-05/0.005579, allocations: 39.64 kB / 268.6 MB, free: 6.25 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.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.0007807/0.00636, allocations: 385.8 kB / 269 MB, free: 5.871 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.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.0006805/0.00704, allocations: 406.5 kB / 269.4 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.007317, allocations: 290.6 kB / 269.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.903e-05/0.007416, allocations: 30.55 kB / 269.7 MB, free: 5.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.007565, allocations: 152.3 kB / 269.8 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.007736, allocations: 103.7 kB / 269.9 MB, free: 4.906 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.007764, allocations: 12 kB / 269.9 MB, free: 4.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.007828, allocations: 19.94 kB / 270 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.00788, allocations: 43.86 kB / 270 MB, free: 4.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.665e-05/0.007936, allocations: 59.81 kB / 270.1 MB, free: 4.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.008137, allocations: 175.3 kB / 270.2 MB, free: 4.602 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.008147, allocations: 0 / 270.2 MB, free: 4.602 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.008147, allocations: 0 / 270.2 MB, free: 4.602 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.008157, allocations: 0 / 270.2 MB, free: 4.602 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005239/0.008681, allocations: 475.3 kB / 270.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/0.008709, allocations: 8.031 kB / 270.7 MB, free: 4.105 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.008865, allocations: 110 kB / 270.8 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.009108, allocations: 228.8 kB / 271 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.009119, allocations: 8.375 kB / 271 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.009145, allocations: 16.12 kB / 271 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.009261, allocations: 81.12 kB / 271.1 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.009269, allocations: 0 / 271.1 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.00928, allocations: 8 kB / 271.1 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.009286, allocations: 3.984 kB / 271.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.488e-05/0.009331, allocations: 37.83 kB / 271.2 MB, free: 3.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.009753, allocations: 298.6 kB / 271.5 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.009854, allocations: 102.9 kB / 271.6 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.803e-05/0.009882, allocations: 28.83 kB / 271.6 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.009889, allocations: 0 / 271.6 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.00991, allocations: 34.56 kB / 271.6 MB, free: 3.078 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 8.52e-07/0.00991, allocations: 3.938 kB / 271.6 MB, free: 3.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000134/0.01004, allocations: 85.59 kB / 271.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.01007, allocations: 51.41 kB / 271.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.0102, allocations: 232.9 kB / 272 MB, free: 2.684 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.01022, allocations: 25.7 kB / 272 MB, free: 2.652 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/0.01028, allocations: 136.3 kB / 272.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.0103, allocations: 43.61 kB / 272.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.01034, allocations: 37.69 kB / 272.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.01042, allocations: 326.8 kB / 272.6 MB, free: 2.102 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.323e-05/0.01045, allocations: 18.81 kB / 272.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.142e-05/0.01049, allocations: 53.12 kB / 272.6 MB, free: 2.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.383e-05/0.01057, allocations: 95.25 kB / 272.7 MB, free: 1.902 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.01057, allocations: 0 / 272.7 MB, free: 1.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001191/0.01069, allocations: 112.3 kB / 272.8 MB, free: 1.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.01071, allocations: 4 kB / 272.8 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.01071, allocations: 3.938 kB / 272.8 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.01073, allocations: 12.09 kB / 272.8 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.01093, allocations: 50.95 kB / 272.9 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.01093, allocations: 4 kB / 272.9 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.547e-05/0.01099, allocations: 23.84 kB / 272.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.01099, allocations: 4 kB / 272.9 MB, free: 1.688 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 (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 6.228e-05/0.01106, allocations: 120.6 kB / 273 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.01108, allocations: 11.98 kB / 273.1 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.01111, allocations: 29.7 kB / 273.1 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.01112, allocations: 4 kB / 273.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.01112, allocations: 4 kB / 273.1 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.01112, allocations: 0 / 273.1 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.01124, allocations: 121.8 kB / 273.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.01124, allocations: 0 / 273.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.01134, allocations: 31.91 kB / 273.2 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.01138, allocations: 19.86 kB / 273.3 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.01138, allocations: 0 / 273.3 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.01139, allocations: 3.938 kB / 273.3 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.01139, allocations: 0 / 273.3 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.01139, allocations: 4 kB / 273.3 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.01155, allocations: 242 kB / 273.5 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.01157, allocations: 0 / 273.5 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.636e-05/0.01162, allocations: 7.938 kB / 273.5 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.01164, allocations: 11.92 kB / 273.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.01165, allocations: 4 kB / 273.5 MB, free: 1.035 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.358e-05/0.0117, allocations: 78.77 kB / 273.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0117, allocations: 0 / 273.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001494/0.01185, allocations: 43.95 kB / 273.6 MB, free: 0.918 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 (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 6.784e-05/0.01192, allocations: 72.42 kB / 273.7 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.346e-05/0.01201, allocations: 68.73 kB / 273.8 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.01201, allocations: 0 / 273.8 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.01205, allocations: 33.25 kB / 273.8 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.0125, allocations: 311.7 kB / 274.1 MB, free: 388 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/0.1201, allocations: 426.3 kB / 274.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.956e-05/0.1201, allocations: 82.34 kB / 274.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.454e-05/0.1202, allocations: 15.86 kB / 274.6 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.1203, allocations: 84.97 kB / 274.7 MB, free: 7.605 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1203, allocations: 0 / 274.7 MB, free: 7.605 MB / 266.7 MB Notification: Performance of Templates: time 0.004305/0.1246, allocations: 2.372 MB / 277.1 MB, free: 7.492 MB / 266.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.5752719826996326]