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.001254/0.001254, allocations: 73.97 kB / 20.65 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.0009351/0.0009351, allocations: 169 kB / 24.06 MB, free: 452 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.9864/0.9864, allocations: 177.1 MB / 204.5 MB, free: 5.48 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.05451/0.05451, allocations: 12.76 MB / 273.8 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.903e-06/1.903e-06, allocations: 0 / 347.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.539e-05/2.729e-05, allocations: 4.844 kB / 347.1 MB, free: 2.957 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.00319/0.003217, allocations: 2.685 MB / 349.8 MB, free: 264 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.006784, allocations: 2.734 MB / 352.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.00697, allocations: 11.88 kB / 352.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.007132, allocations: 39.64 kB / 352.6 MB, free: 13.46 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.001105/0.008237, allocations: 397.8 kB / 353 MB, free: 13.07 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.0008117/0.009049, allocations: 426.6 kB / 353.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003253/0.009374, allocations: 286.5 kB / 353.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.009487, allocations: 28.58 kB / 353.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.009639, allocations: 143.6 kB / 353.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.009842, allocations: 103.7 kB / 353.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.009871, allocations: 12 kB / 353.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.659e-05/0.009937, allocations: 20 kB / 354 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.731e-05/0.009995, allocations: 43.83 kB / 354 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.042e-05/0.01006, allocations: 63.78 kB / 354.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.01031, allocations: 191.2 kB / 354.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.01031, allocations: 4 kB / 354.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01031, allocations: 0 / 354.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.01032, allocations: 0 / 354.2 MB, free: 11.77 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.0005852/0.0109, allocations: 0.5384 MB / 354.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.01094, allocations: 11.98 kB / 354.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.01107, allocations: 40.78 kB / 354.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.01133, allocations: 239.6 kB / 355.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.01135, allocations: 8.375 kB / 355.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.01137, allocations: 16.33 kB / 355.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.01148, allocations: 78.86 kB / 355.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.0115, allocations: 7.938 kB / 355.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-06/0.0115, allocations: 0 / 355.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.01151, allocations: 4 kB / 355.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.045e-05/0.01156, allocations: 39.84 kB / 355.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.01211, allocations: 423.8 kB / 355.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.01221, allocations: 67 kB / 355.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.977e-05/0.01224, allocations: 27.55 kB / 355.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.01225, allocations: 4 kB / 355.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.01227, allocations: 37.39 kB / 355.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.01228, allocations: 0 / 355.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001727/0.01245, allocations: 97.58 kB / 355.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.01248, allocations: 63.27 kB / 355.9 MB, free: 9.949 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.01264, allocations: 288.2 kB / 356.2 MB, free: 9.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.01265, allocations: 25.7 kB / 356.2 MB, free: 9.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.01273, allocations: 199.1 kB / 356.4 MB, free: 9.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.01276, allocations: 39.62 kB / 356.5 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/0.0128, allocations: 47.34 kB / 356.5 MB, free: 9.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.01293, allocations: 0.5001 MB / 357 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.495e-05/0.01295, allocations: 15.98 kB / 357 MB, free: 8.801 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.013, allocations: 74.05 kB / 357.1 MB, free: 8.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.129e-05/0.0131, allocations: 104.8 kB / 357.2 MB, free: 8.578 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.0131, allocations: 0 / 357.2 MB, free: 8.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001389/0.01324, allocations: 129.4 kB / 357.3 MB, free: 8.445 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.01325, allocations: 4 kB / 357.3 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.01326, allocations: 4.156 kB / 357.3 MB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.01327, allocations: 4 kB / 357.3 MB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.01337, allocations: 31.98 kB / 357.4 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.01338, allocations: 11.88 kB / 357.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.974e-05/0.01344, allocations: 19.84 kB / 357.4 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.01344, allocations: 4 kB / 357.4 MB, free: 8.367 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 8.714e-05/0.01353, allocations: 168.5 kB / 357.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.01356, allocations: 23.91 kB / 357.6 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.0136, allocations: 17.78 kB / 357.6 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.0136, allocations: 4 kB / 357.6 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.01361, allocations: 7.938 kB / 357.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.01361, allocations: 3.984 kB / 357.6 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.01376, allocations: 149.1 kB / 357.8 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01376, allocations: 4 kB / 357.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.465e-05/0.01382, allocations: 19.92 kB / 357.8 MB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.01382, allocations: 4 kB / 357.8 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.01384, allocations: 0 / 357.8 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.01384, allocations: 3.938 kB / 357.8 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.01384, allocations: 0 / 357.8 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.01403, allocations: 259.6 kB / 358.1 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.01407, allocations: 27.88 kB / 358.1 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.01409, allocations: 4 kB / 358.1 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.179e-05/0.01414, allocations: 8 kB / 358.1 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.01416, allocations: 3.984 kB / 358.1 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.01416, allocations: 4 kB / 358.1 MB, free: 7.613 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.547e-05/0.01425, allocations: 189.1 kB / 358.3 MB, free: 7.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01425, allocations: 0 / 358.3 MB, free: 7.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001916/0.01444, allocations: 51.88 kB / 358.3 MB, free: 7.375 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 7.901e-05/0.01452, allocations: 91.23 kB / 358.4 MB, free: 7.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.01463, allocations: 77.92 kB / 358.5 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.01463, allocations: 0 / 358.5 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.591e-05/0.01466, allocations: 31.61 kB / 358.5 MB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.01491, allocations: 32.48 kB / 358.6 MB, free: 7.133 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.0009985/0.01591, allocations: 439.8 kB / 359 MB, free: 6.668 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.843e-05/0.016, allocations: 137.5 kB / 359.1 MB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.01611, allocations: 106.2 kB / 359.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01611, allocations: 0 / 359.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of Templates: time 0.002957/0.01907, allocations: 2.4 MB / 361.6 MB, free: 4.027 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 > Bodylight_Bodylight.Chemical.Examples.SimpleReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7060287329368293]