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.00229/0.00229, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.002618/0.002618, allocations: 165.9 kB / 22.45 MB, free: 2.113 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 1.646/1.646, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 178] 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.1238/0.1238, allocations: 12.73 MB / 271.9 MB, free: 0.4961 MB / 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.824e-06/1.824e-06, allocations: 0 / 403.1 MB, free: 8.105 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.496e-05/3.678e-05, allocations: 2.281 kB / 403.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Chemical.Examples.SimpleReaction): time 0.004525/0.004562, allocations: 2.541 MB / 405.6 MB, free: 5.547 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005243/0.009805, allocations: 2.715 MB / 408.3 MB, free: 2.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.009983, allocations: 11.88 kB / 408.3 MB, free: 2.805 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.01017, allocations: 31.59 kB / 408.4 MB, free: 2.773 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.001296/0.01146, allocations: 409.5 kB / 408.8 MB, free: 2.375 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.001159/0.01262, allocations: 437.1 kB / 409.2 MB, free: 1.949 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.01305, allocations: 294.5 kB / 409.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.01319, allocations: 28.56 kB / 409.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.0134, allocations: 135.6 kB / 409.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.01368, allocations: 103.7 kB / 409.8 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.8e-05/0.01371, allocations: 12 kB / 409.8 MB, free: 1.387 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.811e-05/0.01379, allocations: 19.94 kB / 409.8 MB, free: 1.367 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.604e-05/0.01387, allocations: 35.84 kB / 409.8 MB, free: 1.332 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.01398, allocations: 71.77 kB / 409.9 MB, free: 1.262 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.01438, allocations: 239.2 kB / 410.1 MB, free: 1.027 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.01439, allocations: 4 kB / 410.1 MB, free: 1.023 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01439, allocations: 0 / 410.1 MB, free: 1.023 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.0144, allocations: 0 / 410.1 MB, free: 1.023 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.0008598/0.01526, allocations: 453 kB / 410.6 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.01531, allocations: 11.98 kB / 410.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.01549, allocations: 28.8 kB / 410.6 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.01592, allocations: 232.8 kB / 410.8 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.01594, allocations: 8.375 kB / 410.8 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.01597, allocations: 16.33 kB / 410.9 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.01621, allocations: 114.8 kB / 411 MB, free: 120 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.01622, allocations: 11.92 kB / 411 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.01624, allocations: 0 / 411 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.01625, allocations: 4 kB / 411 MB, free: 104 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.01642, allocations: 79.89 kB / 411.1 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1985/0.2149, allocations: 411.9 kB / 411.5 MB, free: 22.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.2151, allocations: 109.4 kB / 411.6 MB, free: 22.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.128e-05/0.2152, allocations: 42.7 kB / 411.6 MB, free: 22.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.2152, allocations: 2.344 kB / 411.6 MB, free: 22.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.2152, allocations: 36.31 kB / 411.7 MB, free: 22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.334e-06/0.2152, allocations: 0.7188 kB / 411.7 MB, free: 22 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003066/0.2155, allocations: 152.7 kB / 411.8 MB, free: 21.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2155, allocations: 53.44 kB / 411.9 MB, free: 21.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.2158, allocations: 242.1 kB / 412.1 MB, free: 21.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.2158, allocations: 31.02 kB / 412.1 MB, free: 21.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.89e-05/0.2159, allocations: 148.1 kB / 412.3 MB, free: 21.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.2159, allocations: 38.34 kB / 412.3 MB, free: 21.56 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.177e-05/0.216, allocations: 38.94 kB / 412.3 MB, free: 21.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.835e-05/0.216, allocations: 333.6 kB / 412.7 MB, free: 21.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-05/0.2161, allocations: 39.22 kB / 412.7 MB, free: 21.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-05/0.2162, allocations: 90.83 kB / 412.8 MB, free: 21.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2163, allocations: 132 kB / 412.9 MB, free: 21.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2163, allocations: 1.156 kB / 412.9 MB, free: 21.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002369/0.2166, allocations: 179.1 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2166, allocations: 6.25 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2166, allocations: 1.719 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2166, allocations: 2.328 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.2168, allocations: 32.28 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2168, allocations: 2.719 kB / 413.1 MB, free: 20.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2169, allocations: 30.56 kB / 413.2 MB, free: 20.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.2169, allocations: 5.438 kB / 413.2 MB, free: 20.95 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.008e-05/0.217, allocations: 134.2 kB / 413.3 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.217, allocations: 17.75 kB / 413.3 MB, free: 20.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.818e-05/0.2171, allocations: 22.33 kB / 413.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2171, allocations: 1.406 kB / 413.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2171, allocations: 1.281 kB / 413.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.2171, allocations: 0.8906 kB / 413.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.2173, allocations: 193.2 kB / 413.5 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2173, allocations: 1.188 kB / 413.5 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2174, allocations: 21.19 kB / 413.6 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2174, allocations: 0.8438 kB / 413.6 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.2174, allocations: 3 kB / 413.6 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2174, allocations: 0.875 kB / 413.6 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2174, allocations: 1.688 kB / 413.6 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.2178, allocations: 272.2 kB / 413.8 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.009e-05/0.2178, allocations: 35.14 kB / 413.9 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.2179, allocations: 7.062 kB / 413.9 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.218, allocations: 2.562 kB / 413.9 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.218, allocations: 9.875 kB / 413.9 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.218, allocations: 1.375 kB / 413.9 MB, free: 20.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001678/0.2182, allocations: 176.2 kB / 414.1 MB, free: 20.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2182, allocations: 1.219 kB / 414.1 MB, free: 20.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003057/0.2185, allocations: 43.25 kB / 414.1 MB, free: 20.32 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 0.0001328/0.2186, allocations: 99.8 kB / 414.2 MB, free: 20.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002686/0.2189, allocations: 99 kB / 414.3 MB, free: 20.19 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2189, allocations: 0 / 414.3 MB, free: 20.19 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.192e-05/0.219, allocations: 43.64 kB / 414.3 MB, free: 20.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.2195, allocations: 42.84 kB / 414.4 MB, free: 20.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008997/0.2204, allocations: 376.8 kB / 414.8 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.2205, allocations: 127.7 kB / 414.9 MB, free: 19.85 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.2207, allocations: 25.75 kB / 414.9 MB, free: 19.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.008e-05/0.2207, allocations: 25.28 kB / 414.9 MB, free: 19.84 MB / 330.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2207, allocations: 1.281 kB / 414.9 MB, free: 19.84 MB / 330.7 MB Notification: Performance of Templates: time 0.006415/0.2271, allocations: 2.157 MB / 417.1 MB, free: 19.58 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: 5.491391653660685]