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.0009007/0.0009007, allocations: 80.81 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.001039/0.001039, allocations: 165 kB / 24.22 MB, free: 240 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.046/1.046, allocations: 177.1 MB / 204.7 MB, free: 5.426 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.06607/0.06607, allocations: 12.76 MB / 273.9 MB, free: 108 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.393e-06/1.393e-06, allocations: 0 / 294.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.449e-05, allocations: 2.312 kB / 294.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.003794/0.003818, allocations: 2.714 MB / 297.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004015/0.007833, allocations: 2.777 MB / 300.4 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.008009, allocations: 12.38 kB / 300.4 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.008191, allocations: 38.67 kB / 300.4 MB, free: 8.316 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.001325/0.009516, allocations: 384.4 kB / 300.8 MB, free: 8.109 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.001164/0.01068, allocations: 410.8 kB / 301.2 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004485/0.01113, allocations: 294.8 kB / 301.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.01125, allocations: 33.42 kB / 301.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.01143, allocations: 141 kB / 301.6 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.01166, allocations: 100.2 kB / 301.7 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.01169, allocations: 11.97 kB / 301.8 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.974e-05/0.01178, allocations: 15.84 kB / 301.8 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.243e-05/0.01184, allocations: 46.22 kB / 301.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.83e-05/0.01192, allocations: 70.44 kB / 301.9 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002722/0.0122, allocations: 185 kB / 302.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.0122, allocations: 1.375 kB / 302.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.0122, allocations: 0 / 302.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.0122, allocations: 4 kB / 302.1 MB, free: 7.52 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.0005406/0.01275, allocations: 421.4 kB / 302.5 MB, free: 7.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.01278, allocations: 13.45 kB / 302.5 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.01293, allocations: 30.83 kB / 302.5 MB, free: 7.172 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.01323, allocations: 232 kB / 302.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.01324, allocations: 8.969 kB / 302.8 MB, free: 6.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.01327, allocations: 13.06 kB / 302.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.01341, allocations: 79.34 kB / 302.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.01343, allocations: 3.938 kB / 302.9 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.01344, allocations: 6.375 kB / 302.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.01344, allocations: 7.344 kB / 302.9 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.049e-05/0.0135, allocations: 28.39 kB / 302.9 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005401/0.01404, allocations: 299 kB / 303.2 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.01416, allocations: 109.2 kB / 303.3 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.188e-05/0.01419, allocations: 17.56 kB / 303.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.0142, allocations: 1.406 kB / 303.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.01422, allocations: 36.55 kB / 303.3 MB, free: 6.586 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.01422, allocations: 0 / 303.3 MB, free: 6.586 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001957/0.01442, allocations: 82.69 kB / 303.4 MB, free: 6.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.01444, allocations: 52.38 kB / 303.5 MB, free: 6.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.01457, allocations: 240.3 kB / 303.7 MB, free: 6.324 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.093e-06/0.01458, allocations: 25.7 kB / 303.7 MB, free: 6.293 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.01461, allocations: 134.6 kB / 303.9 MB, free: 6.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.01463, allocations: 39.88 kB / 303.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/0.01468, allocations: 39.47 kB / 303.9 MB, free: 6.117 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.116e-05/0.01472, allocations: 329.5 kB / 304.3 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.451e-05/0.01475, allocations: 20.27 kB / 304.3 MB, free: 5.789 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/0.01479, allocations: 57.91 kB / 304.3 MB, free: 5.734 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.166e-05/0.01487, allocations: 92.12 kB / 304.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01487, allocations: 0 / 304.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001159/0.01499, allocations: 110.1 kB / 304.5 MB, free: 5.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.015, allocations: 9.531 kB / 304.6 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.015, allocations: 1.375 kB / 304.6 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.01502, allocations: 5.328 kB / 304.6 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.01522, allocations: 45.09 kB / 304.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.01522, allocations: 8.406 kB / 304.6 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.821e-05/0.01528, allocations: 21.34 kB / 304.6 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.01529, allocations: 4.125 kB / 304.6 MB, free: 5.59 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 5.546e-05/0.01534, allocations: 122.7 kB / 304.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.01537, allocations: 15.67 kB / 304.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.01541, allocations: 25.16 kB / 304.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01541, allocations: 2.125 kB / 304.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.01541, allocations: 3.938 kB / 304.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.01542, allocations: 4.844 kB / 304.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.01554, allocations: 120.5 kB / 304.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01554, allocations: 0 / 304.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.01566, allocations: 25.91 kB / 304.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01567, allocations: 0 / 304.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.01568, allocations: 1.891 kB / 304.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.01568, allocations: 5.312 kB / 305 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01568, allocations: 4 kB / 305 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.01584, allocations: 229.5 kB / 305.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.01589, allocations: 30.61 kB / 305.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.0159, allocations: 5.312 kB / 305.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.037e-05/0.01595, allocations: 10.2 kB / 305.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.743e-05/0.01597, allocations: 5.562 kB / 305.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.01598, allocations: 1.375 kB / 305.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.595e-05/0.01604, allocations: 80.56 kB / 305.3 MB, free: 5.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01604, allocations: 0 / 305.3 MB, free: 5.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001623/0.0162, allocations: 48.92 kB / 305.4 MB, free: 5.078 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.841e-05/0.01627, allocations: 79.92 kB / 305.4 MB, free: 5.004 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.01639, allocations: 62.8 kB / 305.5 MB, free: 4.984 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.0164, allocations: 1.719 kB / 305.5 MB, free: 4.984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.806e-05/0.01643, allocations: 22.16 kB / 305.5 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.01668, allocations: 43.5 kB / 305.6 MB, free: 4.961 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.001077/0.01775, allocations: 437 kB / 306 MB, free: 4.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.468e-05/0.0178, allocations: 77.86 kB / 306.1 MB, free: 4.605 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.908e-05/0.01787, allocations: 17.92 kB / 306.1 MB, free: 4.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.122e-05/0.01796, allocations: 82.62 kB / 306.2 MB, free: 4.559 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01796, allocations: 5.094 kB / 306.2 MB, free: 4.555 MB / 266.7 MB Notification: Performance of Templates: time 0.004183/0.02214, allocations: 2.418 MB / 308.6 MB, free: 3.09 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.837818502448499]