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.0008039/0.0008039, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001517/0.001517, allocations: 169 kB / 24.06 MB, free: 456 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 0.9683/0.9683, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.08101/0.08101, allocations: 12.76 MB / 273.8 MB, free: 120 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.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.072e-06/1.072e-06, allocations: 0 / 347.9 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.236e-05/1.344e-05, allocations: 2.312 kB / 347.9 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.002459/0.002473, allocations: 2.681 MB / 350.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.005286, allocations: 2.726 MB / 353.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.005405, allocations: 15.81 kB / 353.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.005548, allocations: 39.64 kB / 353.4 MB, free: 12.55 MB / 330.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.0007818/0.006329, allocations: 401.8 kB / 353.8 MB, free: 12.15 MB / 330.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.0006252/0.006955, allocations: 426.6 kB / 354.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.007195, allocations: 294.5 kB / 354.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.585e-05/0.00729, allocations: 32.52 kB / 354.5 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.007403, allocations: 139.7 kB / 354.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.007566, allocations: 95.69 kB / 354.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.007587, allocations: 12 kB / 354.7 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.621e-05/0.007634, allocations: 23.94 kB / 354.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.789e-05/0.007691, allocations: 47.77 kB / 354.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.322e-05/0.007745, allocations: 63.83 kB / 354.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.007935, allocations: 187.2 kB / 355.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.007937, allocations: 0 / 355.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.007938, allocations: 0 / 355.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.007942, allocations: 0 / 355.1 MB, free: 10.86 MB / 330.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.0004784/0.008421, allocations: 0.5423 MB / 355.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.008455, allocations: 15.97 kB / 355.6 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.008568, allocations: 40.8 kB / 355.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.008816, allocations: 235.6 kB / 355.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.008829, allocations: 12.38 kB / 355.9 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.008853, allocations: 16.33 kB / 355.9 MB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.008956, allocations: 74.88 kB / 356 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.008967, allocations: 3.938 kB / 356 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.008976, allocations: 0 / 356 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.008983, allocations: 7.938 kB / 356 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.493e-05/0.009038, allocations: 47.83 kB / 356.1 MB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.0095, allocations: 415.8 kB / 356.5 MB, free: 9.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.159e-05/0.009592, allocations: 66.95 kB / 356.5 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.079e-05/0.009623, allocations: 27.66 kB / 356.5 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.009631, allocations: 4 kB / 356.6 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.009649, allocations: 37.39 kB / 356.6 MB, free: 9.203 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.001e-06/0.00965, allocations: 4 kB / 356.6 MB, free: 9.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.000149/0.009799, allocations: 93.56 kB / 356.7 MB, free: 9.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.009827, allocations: 63.34 kB / 356.7 MB, free: 9.027 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.00996, allocations: 276.2 kB / 357 MB, free: 8.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.009972, allocations: 33.64 kB / 357 MB, free: 8.703 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.01005, allocations: 199 kB / 357.2 MB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.01007, allocations: 43.67 kB / 357.3 MB, free: 8.461 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.01011, allocations: 39.36 kB / 357.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003209/0.01043, allocations: 0.5001 MB / 357.8 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.336e-05/0.01046, allocations: 15.98 kB / 357.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.838e-05/0.0105, allocations: 82.05 kB / 357.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.484e-05/0.01059, allocations: 97.27 kB / 358 MB, free: 7.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.01059, allocations: 0 / 358 MB, free: 7.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001261/0.01072, allocations: 133.3 kB / 358.1 MB, free: 7.527 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.01073, allocations: 8.156 kB / 358.2 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.01073, allocations: 4 kB / 358.2 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/0.01074, allocations: 0 / 358.2 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.01083, allocations: 35.98 kB / 358.2 MB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.01084, allocations: 11.92 kB / 358.2 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.617e-05/0.0109, allocations: 15.84 kB / 358.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.016e-06/0.0109, allocations: 8 kB / 358.2 MB, free: 7.445 MB / 330.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.617e-05/0.01097, allocations: 164.5 kB / 358.4 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.011, allocations: 19.91 kB / 358.4 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.016e-05/0.01103, allocations: 21.77 kB / 358.4 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.01103, allocations: 8 kB / 358.4 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.01103, allocations: 7.938 kB / 358.4 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.01103, allocations: 0 / 358.4 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.01116, allocations: 161 kB / 358.6 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01116, allocations: 0 / 358.6 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.73e-05/0.01122, allocations: 19.94 kB / 358.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.01122, allocations: 0 / 358.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.01123, allocations: 0 / 358.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.01123, allocations: 0 / 358.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.01123, allocations: 0 / 358.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.01139, allocations: 259.7 kB / 358.9 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.161e-05/0.01143, allocations: 35.77 kB / 358.9 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.01145, allocations: 4 kB / 358.9 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.901e-05/0.01151, allocations: 7.984 kB / 358.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.298e-05/0.01152, allocations: 4 kB / 358.9 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.01152, allocations: 3.984 kB / 358.9 MB, free: 6.688 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.752e-05/0.0116, allocations: 193.1 kB / 359.1 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0116, allocations: 4 kB / 359.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001693/0.01177, allocations: 43.94 kB / 359.2 MB, free: 6.449 MB / 330.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.659e-05/0.01184, allocations: 91.28 kB / 359.3 MB, free: 6.352 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.01194, allocations: 67.53 kB / 359.3 MB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.01194, allocations: 0 / 359.3 MB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.601e-05/0.01196, allocations: 31.61 kB / 359.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.01221, allocations: 36.47 kB / 359.4 MB, free: 6.211 MB / 330.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.0008849/0.01309, allocations: 414.7 kB / 359.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.131e-05/0.01313, allocations: 84.31 kB / 359.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.969e-05/0.01318, allocations: 17.64 kB / 359.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.013e-05/0.01327, allocations: 114.2 kB / 360 MB, free: 5.547 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01327, allocations: 0 / 360 MB, free: 5.547 MB / 330.7 MB Notification: Performance of Templates: time 0.003621/0.0169, allocations: 2.404 MB / 362.4 MB, free: 3.195 MB / 330.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.818367024883628]