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.001409/0.001409, allocations: 88.52 kB / 19.94 MB, free: 4.605 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.001512/0.001512, allocations: 177.9 kB / 23.21 MB, free: 1.328 MB / 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.9024/0.9024, allocations: 177.2 MB / 203.5 MB, free: 5.602 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.06892/0.06892, allocations: 12.74 MB / 272.7 MB, free: 372 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 1.403e-06/1.403e-06, allocations: 0 / 403.1 MB, free: 8.93 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.29e-05, allocations: 10.22 kB / 403.1 MB, free: 8.918 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.ExothermicReaction): time 0.002681/0.002704, allocations: 2.735 MB / 405.8 MB, free: 6.172 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003178/0.005881, allocations: 2.754 MB / 408.6 MB, free: 3.402 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.00603, allocations: 15.81 kB / 408.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.006183, allocations: 43.58 kB / 408.6 MB, free: 3.344 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.0009201/0.007103, allocations: 417.8 kB / 409 MB, free: 2.934 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.0006711/0.007774, allocations: 438.2 kB / 409.5 MB, free: 2.508 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.008095, allocations: 342.2 kB / 409.8 MB, free: 2.172 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.008219, allocations: 48.86 kB / 409.8 MB, free: 2.125 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.008367, allocations: 167.6 kB / 410 MB, free: 1.961 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.008523, allocations: 107.6 kB / 410.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.008549, allocations: 16 kB / 410.1 MB, free: 1.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.008605, allocations: 31.92 kB / 410.2 MB, free: 1.809 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.36e-05/0.008659, allocations: 43.83 kB / 410.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.054e-05/0.00873, allocations: 87.7 kB / 410.3 MB, free: 1.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002588/0.008988, allocations: 275 kB / 410.6 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.008991, allocations: 4 kB / 410.6 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.008992, allocations: 0 / 410.6 MB, free: 1.406 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.008997, allocations: 4 kB / 410.6 MB, free: 1.402 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.0005614/0.009558, allocations: 488.8 kB / 411 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.009592, allocations: 11.98 kB / 411 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.009722, allocations: 36.75 kB / 411.1 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.01002, allocations: 252.7 kB / 411.3 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.01003, allocations: 8.375 kB / 411.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.01006, allocations: 16.38 kB / 411.4 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.01024, allocations: 139.5 kB / 411.5 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.01026, allocations: 3.938 kB / 411.5 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.01027, allocations: 4 kB / 411.5 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.01027, allocations: 11.98 kB / 411.5 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.0104, allocations: 87.95 kB / 411.6 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1342/0.1446, allocations: 472.6 kB / 412.1 MB, free: 21.92 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.1448, allocations: 106.1 kB / 412.2 MB, free: 21.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.424e-05/0.1448, allocations: 42.14 kB / 412.2 MB, free: 21.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.1448, allocations: 1.344 kB / 412.2 MB, free: 21.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.1448, allocations: 37.86 kB / 412.2 MB, free: 21.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.585e-06/0.1449, allocations: 1.062 kB / 412.2 MB, free: 21.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002485/0.1451, allocations: 153.9 kB / 412.4 MB, free: 21.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.1451, allocations: 54.22 kB / 412.4 MB, free: 21.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.1453, allocations: 259.2 kB / 412.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.1453, allocations: 29.33 kB / 412.7 MB, free: 21.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.1454, allocations: 158.7 kB / 412.9 MB, free: 21.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.1454, allocations: 41.11 kB / 412.9 MB, free: 21.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.1454, allocations: 40.05 kB / 413 MB, free: 21.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.75e-05/0.1455, allocations: 333.5 kB / 413.3 MB, free: 21.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.461e-05/0.1455, allocations: 39.58 kB / 413.3 MB, free: 21.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.455e-05/0.1456, allocations: 84.52 kB / 413.4 MB, free: 21.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.1457, allocations: 132.2 kB / 413.5 MB, free: 20.99 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1457, allocations: 0.7969 kB / 413.5 MB, free: 20.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001722/0.1459, allocations: 178.2 kB / 413.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1459, allocations: 6.469 kB / 413.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1459, allocations: 2.125 kB / 413.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1459, allocations: 7.516 kB / 413.7 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.1461, allocations: 35 kB / 413.8 MB, free: 20.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.1461, allocations: 11.23 kB / 413.8 MB, free: 20.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.429e-05/0.1461, allocations: 17.23 kB / 413.8 MB, free: 20.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.1461, allocations: 5.688 kB / 413.8 MB, free: 20.89 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.944e-05/0.1462, allocations: 133.9 kB / 413.9 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.1462, allocations: 20.89 kB / 413.9 MB, free: 20.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.1463, allocations: 30.75 kB / 414 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1463, allocations: 2.078 kB / 414 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1463, allocations: 1.25 kB / 414 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1463, allocations: 2.719 kB / 414 MB, free: 20.74 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.1464, allocations: 191 kB / 414.2 MB, free: 20.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1464, allocations: 2.953 kB / 414.2 MB, free: 20.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.538e-05/0.1465, allocations: 25.08 kB / 414.2 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1465, allocations: 0 / 414.2 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1465, allocations: 7.156 kB / 414.2 MB, free: 20.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.1465, allocations: 5.719 kB / 414.2 MB, free: 20.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1465, allocations: 0 / 414.2 MB, free: 20.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.1467, allocations: 264.3 kB / 414.5 MB, free: 20.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.1468, allocations: 29.2 kB / 414.5 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.1468, allocations: 1.844 kB / 414.5 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.019e-05/0.1469, allocations: 17.23 kB / 414.5 MB, free: 20.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.1469, allocations: 5.031 kB / 414.5 MB, free: 20.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.1469, allocations: 2.641 kB / 414.5 MB, free: 20.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.697e-05/0.147, allocations: 181.9 kB / 414.7 MB, free: 20.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.147, allocations: 0 / 414.7 MB, free: 20.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.1472, allocations: 50.19 kB / 414.7 MB, free: 20.25 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.289e-05/0.1473, allocations: 94.45 kB / 414.8 MB, free: 20.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.1474, allocations: 106.7 kB / 414.9 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1474, allocations: 0 / 414.9 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.695e-05/0.1474, allocations: 39.44 kB / 415 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.1478, allocations: 51.03 kB / 415 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.1483, allocations: 446.3 kB / 415.5 MB, free: 19.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.885e-05/0.1484, allocations: 145.2 kB / 415.6 MB, free: 19.72 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.692e-05/0.1484, allocations: 21.62 kB / 415.6 MB, free: 19.71 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1484, allocations: 0 / 415.6 MB, free: 19.71 MB / 330.7 MB Notification: Performance of Templates: time 0.00383/0.1523, allocations: 2.674 MB / 418.3 MB, free: 19.5 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: 4.743428975343704]