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.0009567/0.0009567, allocations: 73.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.0009871/0.0009871, 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 0.9316/0.9316, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.08616/0.08616, allocations: 12.76 MB / 273.8 MB, free: 112 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.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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 347.2 MB, free: 1.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.099e-05, allocations: 2.312 kB / 347.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.SteadyStates.Examples.SimpleReaction_InitSteadyState): time 0.002689/0.00271, allocations: 2.872 MB / 350.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003227/0.005938, allocations: 2.761 MB / 352.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.006123, allocations: 11.88 kB / 352.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.006284, allocations: 47.52 kB / 352.9 MB, free: 11.92 MB / 282.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.001001/0.007285, allocations: 417.7 kB / 353.3 MB, free: 11.51 MB / 282.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.0007792/0.008064, allocations: 442.6 kB / 353.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.008417, allocations: 342.3 kB / 354.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.008532, allocations: 32.92 kB / 354.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.008694, allocations: 159.6 kB / 354.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.00892, allocations: 115.7 kB / 354.4 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.008946, allocations: 16 kB / 354.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.849e-05/0.009005, allocations: 20 kB / 354.4 MB, free: 10.4 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.009059, allocations: 55.75 kB / 354.5 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.301e-05/0.009122, allocations: 79.77 kB / 354.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005258/0.009648, allocations: 211.1 kB / 354.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.009652, allocations: 0 / 354.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.009653, allocations: 0 / 354.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.009659, allocations: 0 / 354.8 MB, free: 10.06 MB / 282.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.0005393/0.0102, allocations: 0.5733 MB / 355.3 MB, free: 9.453 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.01023, allocations: 11.98 kB / 355.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.01036, allocations: 44.75 kB / 355.4 MB, free: 9.398 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.01062, allocations: 251.6 kB / 355.6 MB, free: 9.125 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.01064, allocations: 16.36 kB / 355.7 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.01067, allocations: 16.38 kB / 355.7 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.01078, allocations: 90.2 kB / 355.8 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.01079, allocations: 7.891 kB / 355.8 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.0108, allocations: 4 kB / 355.8 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.01081, allocations: 4 kB / 355.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.443e-05/0.01086, allocations: 39.89 kB / 355.8 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005706/0.01143, allocations: 455.7 kB / 356.3 MB, free: 8.473 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.01154, allocations: 79 kB / 356.3 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.942e-05/0.01157, allocations: 23.67 kB / 356.4 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.01158, allocations: 4 kB / 356.4 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.0116, allocations: 37.39 kB / 356.4 MB, free: 8.305 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.753e-06/0.01161, allocations: 0 / 356.4 MB, free: 8.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001725/0.01178, allocations: 109.3 kB / 356.5 MB, free: 8.191 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.0118, allocations: 63.44 kB / 356.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.01195, allocations: 296.1 kB / 356.9 MB, free: 7.809 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.01197, allocations: 25.7 kB / 356.9 MB, free: 7.777 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.204e-05/0.01205, allocations: 211 kB / 357.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.01207, allocations: 39.69 kB / 357.1 MB, free: 7.527 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.01212, allocations: 55.28 kB / 357.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.01223, allocations: 0.4962 MB / 357.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.602e-05/0.01226, allocations: 15.98 kB / 357.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.514e-05/0.01231, allocations: 87.89 kB / 357.8 MB, free: 6.832 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.681e-05/0.0124, allocations: 100.8 kB / 357.9 MB, free: 6.711 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.0124, allocations: 4 kB / 357.9 MB, free: 6.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003175/0.01272, allocations: 184.9 kB / 358.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.01273, allocations: 8 kB / 358.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.01274, allocations: 0 / 358.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/0.01305, allocations: 75.75 kB / 358.2 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.289e-05/0.01312, allocations: 31.92 kB / 358.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.01432, allocations: 1.88 MB / 360.1 MB, free: 4.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.303e-05/0.0144, allocations: 15.89 kB / 360.1 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.0144, allocations: 4 kB / 360.1 MB, free: 4.387 MB / 282.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.416e-05/0.01449, allocations: 164.5 kB / 360.2 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.01452, allocations: 27.8 kB / 360.3 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.01455, allocations: 25.77 kB / 360.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.01455, allocations: 8 kB / 360.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.01455, allocations: 0 / 360.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01456, allocations: 0 / 360.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.0147, allocations: 161.1 kB / 360.5 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01471, allocations: 0 / 360.5 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.01478, allocations: 19.98 kB / 360.5 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.01478, allocations: 4 kB / 360.5 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.01479, allocations: 0 / 360.5 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.01479, allocations: 3.938 kB / 360.5 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.01479, allocations: 3.984 kB / 360.5 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.01496, allocations: 267.7 kB / 360.8 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.01501, allocations: 35.77 kB / 360.8 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.01503, allocations: 4 kB / 360.8 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.624e-05/0.01508, allocations: 3.938 kB / 360.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.544e-05/0.0151, allocations: 7.984 kB / 360.8 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.01511, allocations: 8 kB / 360.8 MB, free: 3.594 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.499e-05/0.01519, allocations: 197.1 kB / 361 MB, free: 3.402 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01519, allocations: 0 / 361 MB, free: 3.402 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.0154, allocations: 59.95 kB / 361.1 MB, free: 3.344 MB / 282.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 7.627e-05/0.01548, allocations: 95.28 kB / 361.2 MB, free: 3.242 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003154/0.0158, allocations: 280.6 kB / 361.4 MB, free: 2.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.0158, allocations: 0 / 361.4 MB, free: 2.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.3e-05/0.01583, allocations: 35.61 kB / 361.5 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.0161, allocations: 57.42 kB / 361.5 MB, free: 2.855 MB / 282.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.001326/0.01742, allocations: 490.7 kB / 362 MB, free: 2.344 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.527e-05/0.01752, allocations: 142.2 kB / 362.1 MB, free: 2.188 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.01764, allocations: 110.2 kB / 362.2 MB, free: 2.078 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01764, allocations: 4 kB / 362.3 MB, free: 2.074 MB / 282.7 MB Notification: Performance of Templates: time 0.00341/0.02105, allocations: 3.18 MB / 365.4 MB, free: 14.91 MB / 298.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: 3.8358243252150714]