Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.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.0009414/0.0009414, 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.001111/0.001111, 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 1.011/1.011, 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.06249/0.06249, 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.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.ExothermicReaction") translateModel(Bodylight.Chemical.Examples.ExothermicReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Chemical.Examples.ExothermicReaction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 347.1 MB, free: 2.852 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.855e-05/3.057e-05, allocations: 6.312 kB / 347.1 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.003914/0.003945, allocations: 2.894 MB / 350 MB, free: 15.94 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.007807, allocations: 2.769 MB / 352.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.007978, allocations: 11.88 kB / 352.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.008126, allocations: 47.5 kB / 352.8 MB, free: 13.1 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.ExothermicReaction.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.ExothermicReaction.A.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.B.Utilities.readReal' contains a call to impure function 'Bodylight.Chemical.Examples.ExothermicReaction.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.0009198/0.009046, allocations: 417.7 kB / 353.2 MB, free: 12.69 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.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.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.ExothermicReaction.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0007439/0.00979, allocations: 438.6 kB / 353.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.0101, allocations: 346.2 kB / 354 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.0102, allocations: 40.91 kB / 354 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.01034, allocations: 171.5 kB / 354.2 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.0105, allocations: 115.7 kB / 354.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.01052, allocations: 12 kB / 354.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.01058, allocations: 20 kB / 354.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.455e-05/0.01063, allocations: 55.75 kB / 354.4 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.01069, allocations: 83.77 kB / 354.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.01094, allocations: 219.1 kB / 354.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.01094, allocations: 0 / 354.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01094, allocations: 0 / 354.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.01095, allocations: 0 / 354.7 MB, free: 11.22 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0004831/0.01143, allocations: 0.5811 MB / 355.3 MB, free: 10.6 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.01146, allocations: 11.98 kB / 355.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.01158, allocations: 48.75 kB / 355.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.01181, allocations: 259.5 kB / 355.6 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.01182, allocations: 8.375 kB / 355.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.01185, allocations: 24.36 kB / 355.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.01196, allocations: 87.69 kB / 355.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.01197, allocations: 3.938 kB / 355.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.01198, allocations: 8 kB / 355.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.01198, allocations: 4 kB / 355.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.542e-05/0.01204, allocations: 43.67 kB / 355.8 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.01255, allocations: 467.7 kB / 356.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.01265, allocations: 78.86 kB / 356.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.733e-05/0.01268, allocations: 27.66 kB / 356.3 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.01269, allocations: 0 / 356.3 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.01271, allocations: 41.39 kB / 356.4 MB, free: 9.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.01271, allocations: 0 / 356.4 MB, free: 9.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001414/0.01285, allocations: 93.58 kB / 356.5 MB, free: 9.324 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/0.01287, allocations: 55.41 kB / 356.5 MB, free: 9.258 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.01302, allocations: 300.1 kB / 356.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.01303, allocations: 25.7 kB / 356.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.679e-05/0.01312, allocations: 214.9 kB / 357 MB, free: 8.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.01314, allocations: 39.62 kB / 357.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.01318, allocations: 51.34 kB / 357.1 MB, free: 8.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002591/0.01344, allocations: 0.504 MB / 357.6 MB, free: 8.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.112e-05/0.01346, allocations: 15.98 kB / 357.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.491e-05/0.01352, allocations: 74.05 kB / 357.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.511e-05/0.0136, allocations: 97.98 kB / 357.8 MB, free: 7.855 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.0136, allocations: 0 / 357.8 MB, free: 7.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001282/0.01373, allocations: 140.9 kB / 358 MB, free: 7.715 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.01374, allocations: 4 kB / 358 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01375, allocations: 7.938 kB / 358 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.01376, allocations: 4.156 kB / 358 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.368e-05/0.01385, allocations: 35.98 kB / 358 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.01386, allocations: 0 / 358 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.483e-05/0.01391, allocations: 19.89 kB / 358 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.01392, allocations: 4 kB / 358 MB, free: 7.641 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 7.422e-05/0.01399, allocations: 168.5 kB / 358.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.01402, allocations: 27.8 kB / 358.2 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.613e-05/0.01406, allocations: 25.78 kB / 358.3 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.01406, allocations: 3.984 kB / 358.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.644e-06/0.01406, allocations: 0 / 358.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.01407, allocations: 4 kB / 358.3 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.0142, allocations: 157.1 kB / 358.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.0142, allocations: 0 / 358.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.106e-05/0.01426, allocations: 23.94 kB / 358.4 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01426, allocations: 3.938 kB / 358.4 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.01427, allocations: 0 / 358.4 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.01427, allocations: 0 / 358.4 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.01427, allocations: 7.984 kB / 358.5 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.01444, allocations: 255.6 kB / 358.7 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.01448, allocations: 31.84 kB / 358.7 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.01449, allocations: 7.969 kB / 358.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.2e-05/0.01455, allocations: 3.953 kB / 358.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.01456, allocations: 11.92 kB / 358.8 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.01456, allocations: 4 kB / 358.8 MB, free: 6.859 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.861e-05/0.01464, allocations: 193.1 kB / 358.9 MB, free: 6.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01464, allocations: 4 kB / 359 MB, free: 6.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001756/0.01482, allocations: 47.94 kB / 359 MB, free: 6.617 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.481e-05/0.01489, allocations: 91.25 kB / 359.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.481e-05/0.01499, allocations: 75.56 kB / 359.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.01499, allocations: 0 / 359.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.548e-05/0.01502, allocations: 31.61 kB / 359.2 MB, free: 6.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.01527, allocations: 43.67 kB / 359.2 MB, free: 6.367 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.001018/0.01629, allocations: 487.8 kB / 359.7 MB, free: 5.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.735e-05/0.01638, allocations: 142.2 kB / 359.8 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.01649, allocations: 114.2 kB / 360 MB, free: 5.586 MB / 330.7 MB Notification: Performance of SimCode: time 3.627e-06/0.01649, allocations: 0 / 360 MB, free: 5.586 MB / 330.7 MB Notification: Performance of Templates: time 0.002794/0.01928, allocations: 2.663 MB / 362.6 MB, free: 2.93 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe ; mkfifo Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe >> ../files/Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.sim & ./Bodylight_Bodylight.Chemical.Examples.ExothermicReaction > Bodylight_Bodylight.Chemical.Examples.ExothermicReaction.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.664766165893525]