Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.001088/0.001088, allocations: 104.3 kB / 19.71 MB, free: 436 kB / 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.001225/0.001225, allocations: 213.1 kB / 23 MB, free: 2.965 MB / 13.93 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.018/1.018, allocations: 230.6 MB / 256.8 MB, free: 9.602 MB / 202.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.07092/0.07092, allocations: 17.15 MB / 330.4 MB, free: 0.707 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.SteadyStates.Examples.SimpleReaction_InitSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState") translateModel(Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState") [Timeout 660] "Notification: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 67.89 kB / 460.8 MB, free: 26.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1021, allocations: 57.77 MB / 0.5064 GB, free: 1.117 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState): time 0.002906/0.105, allocations: 2.689 MB / 0.5091 GB, free: 14.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.1082, allocations: 2.754 MB / 0.5118 GB, free: 11.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1083, allocations: 11.88 kB / 0.5118 GB, free: 11.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.1085, allocations: 47.52 kB / 0.5118 GB, free: 11.59 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:6207:6-6223:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.A.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.B.Utilities.readReal' contains a call to impure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.B.Utilities.UnitConversions.findUnit'. Notification: Performance of NFTyping.typeBindings: time 0.00089/0.1094, allocations: 410 kB / 0.5122 GB, free: 11.18 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Types.mo:5783:15-5804:18:writable] Warning: Pure function 'Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.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.SteadyStates.Examples.SimpleReaction_InitSteadyState.B.Utilities.writeComparison' contains a call to impure function 'Modelica.Utilities.Files.createDirectory'. Notification: Performance of NFTyping.typeClassSections: time 0.0005803/0.11, allocations: 450.2 kB / 0.5126 GB, free: 10.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.1103, allocations: 338.4 kB / 0.513 GB, free: 10.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.1104, allocations: 36.83 kB / 0.513 GB, free: 10.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.89e-05/0.1105, allocations: 111.6 kB / 0.5131 GB, free: 10.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.1108, allocations: 139.3 kB / 0.5132 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.1108, allocations: 12 kB / 0.5132 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.655e-05/0.1108, allocations: 20 kB / 0.5133 GB, free: 10.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.465e-05/0.1109, allocations: 51.77 kB / 0.5133 GB, free: 10.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.272e-05/0.111, allocations: 95.53 kB / 0.5134 GB, free: 9.953 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.1113, allocations: 274.7 kB / 0.5137 GB, free: 9.684 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1113, allocations: 3.938 kB / 0.5137 GB, free: 9.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1113, allocations: 0 / 0.5137 GB, free: 9.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1113, allocations: 0 / 0.5137 GB, free: 9.68 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006454/0.1119, allocations: 477 kB / 0.5141 GB, free: 9.184 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.112, allocations: 12.03 kB / 0.5141 GB, free: 9.172 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1121, allocations: 36.73 kB / 0.5142 GB, free: 9.137 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.1124, allocations: 249.4 kB / 0.5144 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1124, allocations: 12.38 kB / 0.5144 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.1124, allocations: 20.12 kB / 0.5144 GB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.1126, allocations: 134.1 kB / 0.5146 GB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1126, allocations: 0 / 0.5146 GB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.1127, allocations: 8 kB / 0.5146 GB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1127, allocations: 7.938 kB / 0.5146 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.1128, allocations: 87.94 kB / 0.5147 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006536/0.1134, allocations: 455.9 kB / 0.5151 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.1136, allocations: 130.4 kB / 0.5152 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.348e-05/0.1137, allocations: 48.83 kB / 0.5153 GB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.1137, allocations: 4 kB / 0.5153 GB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.1137, allocations: 30.56 kB / 0.5153 GB, free: 7.891 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.1137, allocations: 4 kB / 0.5153 GB, free: 7.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002492/0.114, allocations: 157.5 kB / 0.5155 GB, free: 7.727 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.114, allocations: 59.41 kB / 0.5155 GB, free: 7.656 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.1142, allocations: 257.8 kB / 0.5158 GB, free: 7.398 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.1142, allocations: 37.64 kB / 0.5158 GB, free: 7.355 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.282e-05/0.1143, allocations: 152.4 kB / 0.5159 GB, free: 7.203 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.1143, allocations: 39.62 kB / 0.516 GB, free: 7.164 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.1143, allocations: 45.66 kB / 0.516 GB, free: 7.113 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.459e-05/0.1144, allocations: 326.8 kB / 0.5163 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.541e-05/0.1145, allocations: 51.91 kB / 0.5164 GB, free: 6.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.652e-05/0.1145, allocations: 85.12 kB / 0.5165 GB, free: 6.633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.1147, allocations: 148.2 kB / 0.5166 GB, free: 6.473 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1147, allocations: 0 / 0.5166 GB, free: 6.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003949/0.1151, allocations: 238.3 kB / 0.5168 GB, free: 6.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1151, allocations: 7.938 kB / 0.5168 GB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1151, allocations: 4 kB / 0.5168 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.1154, allocations: 68.77 kB / 0.5169 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.817e-05/0.1155, allocations: 35.97 kB / 0.5169 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.1171, allocations: 1.614 MB / 0.5185 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.95e-05/0.1171, allocations: 23.84 kB / 0.5185 GB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.1172, allocations: 4 kB / 0.5185 GB, free: 4.375 MB / 378.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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 8.721e-05/0.1172, allocations: 141.8 kB / 0.5187 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.1173, allocations: 27.98 kB / 0.5187 GB, free: 4.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.1173, allocations: 25.7 kB / 0.5187 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1173, allocations: 4 kB / 0.5187 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.1173, allocations: 0 / 0.5187 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1173, allocations: 7.922 kB / 0.5187 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.1175, allocations: 185.2 kB / 0.5189 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.1175, allocations: 0 / 0.5189 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.427e-05/0.1175, allocations: 27.92 kB / 0.5189 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1175, allocations: 4 kB / 0.519 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.1176, allocations: 8 kB / 0.519 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1176, allocations: 4 kB / 0.519 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1176, allocations: 0 / 0.519 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.1177, allocations: 279.2 kB / 0.5192 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.798e-05/0.1178, allocations: 39.77 kB / 0.5193 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1178, allocations: 0 / 0.5193 GB, free: 3.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.746e-05/0.1179, allocations: 8 kB / 0.5193 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.1179, allocations: 3.984 kB / 0.5193 GB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1179, allocations: 4 kB / 0.5193 GB, free: 3.562 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000106/0.118, allocations: 181.2 kB / 0.5195 GB, free: 3.383 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.118, allocations: 4.062 kB / 0.5195 GB, free: 3.379 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001918/0.1182, allocations: 52 kB / 0.5195 GB, free: 3.328 MB / 378.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 (11): * Single equations (assignments): 11 * 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.523e-05/0.1183, allocations: 103.1 kB / 0.5196 GB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003769/0.1186, allocations: 266.6 kB / 0.5199 GB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.1186, allocations: 320 / 0.5199 GB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.363e-05/0.1187, allocations: 48.47 kB / 0.5199 GB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.1189, allocations: 52.56 kB / 0.52 GB, free: 2.848 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005472/0.1195, allocations: 486.7 kB / 0.5204 GB, free: 2.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.6e-05/0.1196, allocations: 142.2 kB / 0.5206 GB, free: 2.188 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.1196, allocations: 27.38 kB / 0.5206 GB, free: 2.16 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1196, allocations: 0 / 0.5206 GB, free: 2.16 MB / 378.7 MB Notification: Performance of Templates: time 0.003577/0.1232, allocations: 3.164 MB / 0.5237 GB, free: 15 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.makefile [Timeout 660] (rm -f Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe ; mkfifo Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe ; head -c 1048576 < Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe >> ../files/Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.sim & ./Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState > Bodylight_Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.36131404992193]