Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.001341, allocations: 106.4 kB / 16.64 MB, free: 6.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 186 kB / 17.57 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.842/0.842, allocations: 125.4 MB / 416.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 75.88 kB / 0.4943 GB, free: 4.816 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4021, allocations: 78.56 MB / 0.571 GB, free: 31.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02835/0.4305, allocations: 29.43 MB / 0.5997 GB, free: 9.246 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009784/0.4403, allocations: 7.992 MB / 0.6075 GB, free: 2.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.4421, allocations: 31.75 kB / 0.6076 GB, free: 2.289 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.4434, allocations: 357.9 kB / 0.6079 GB, free: 1.938 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003756/0.4472, allocations: 1.251 MB / 0.6091 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002852/0.4501, allocations: 1.034 MB / 0.6101 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004857/0.4549, allocations: 3.487 MB / 0.6136 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002017/0.457, allocations: 1.305 MB / 0.6148 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003322/0.4603, allocations: 1.737 MB / 0.6165 GB, free: 9.102 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002964/0.4633, allocations: 1.636 MB / 0.6181 GB, free: 7.461 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005031/0.4638, allocations: 124 kB / 0.6182 GB, free: 7.34 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002455/0.4663, allocations: 1.018 MB / 0.6192 GB, free: 6.32 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005195/0.4668, allocations: 406.7 kB / 0.6196 GB, free: 5.922 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.468, allocations: 0.7349 MB / 0.6203 GB, free: 5.184 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002274/0.4703, allocations: 1.575 MB / 0.6219 GB, free: 3.605 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4703, allocations: 4 kB / 0.6219 GB, free: 3.602 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4703, allocations: 0 / 0.6219 GB, free: 3.602 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.788e-05/0.4703, allocations: 0 / 0.6219 GB, free: 3.602 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003166/0.4735, allocations: 1.641 MB / 0.6235 GB, free: 1.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.4736, allocations: 8.031 kB / 0.6235 GB, free: 1.902 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.474, allocations: 146.9 kB / 0.6236 GB, free: 1.758 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.4756, allocations: 0.8829 MB / 0.6245 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.093e-05/0.4757, allocations: 81.31 kB / 0.6246 GB, free: 0.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002301/0.4759, allocations: 116 kB / 0.6247 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.4771, allocations: 0.6395 MB / 0.6253 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.4772, allocations: 0 / 0.6253 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.4772, allocations: 20 kB / 0.6253 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.4773, allocations: 19.94 kB / 0.6253 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009318/0.4782, allocations: 464.9 kB / 0.6258 GB, free: 15.47 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004748/0.483, allocations: 2.856 MB / 0.6286 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.4836, allocations: 306.7 kB / 0.6289 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/0.484, allocations: 145.3 kB / 0.629 GB, free: 12.01 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003756/0.4843, allocations: 344.7 kB / 0.6293 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.4844, allocations: 34.84 kB / 0.6294 GB, free: 11.56 MB / 478.1 MB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.4844, allocations: 4 kB / 0.6294 GB, free: 11.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.001371/0.4858, allocations: 0.5244 MB / 0.6299 GB, free: 11.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.4858, allocations: 55.41 kB / 0.6299 GB, free: 10.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.487, allocations: 0.8741 MB / 0.6308 GB, free: 10.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.4871, allocations: 57.7 kB / 0.6308 GB, free: 10 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005526/0.4877, allocations: 0.545 MB / 0.6314 GB, free: 9.445 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.4878, allocations: 114.3 kB / 0.6315 GB, free: 9.332 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004657/0.4883, allocations: 287 kB / 0.6318 GB, free: 9.047 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4884, allocations: 329.9 kB / 0.6321 GB, free: 8.719 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.4889, allocations: 193.4 kB / 0.6323 GB, free: 8.531 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.4905, allocations: 1.151 MB / 0.6334 GB, free: 7.016 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008795/0.4913, allocations: 459.4 kB / 0.6338 GB, free: 6.539 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4914, allocations: 0 / 0.6338 GB, free: 6.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001437/0.4928, allocations: 0.6501 MB / 0.6345 GB, free: 5.883 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4928, allocations: 8 kB / 0.6345 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.4928, allocations: 4 kB / 0.6345 GB, free: 5.871 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.4929, allocations: 4 kB / 0.6345 GB, free: 5.867 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.4944, allocations: 239.8 kB / 0.6347 GB, free: 5.633 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.4964, allocations: 2.957 MB / 0.6376 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.4998, allocations: 0.7262 MB / 0.6383 GB, free: 1.832 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.845e-05/0.4999, allocations: 27.98 kB / 0.6383 GB, free: 1.805 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007835/0.5007, allocations: 369.9 kB / 0.6387 GB, free: 1.441 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001543/0.5023, allocations: 1.154 MB / 0.6398 GB, free: 15.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008272/0.5031, allocations: 456.9 kB / 0.6402 GB, free: 15.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.448e-06/0.5031, allocations: 3.984 kB / 0.6402 GB, free: 15.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001585/0.5047, allocations: 0.6471 MB / 0.6409 GB, free: 14.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.5048, allocations: 10.5 kB / 0.6409 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.5048, allocations: 8.25 kB / 0.6409 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.5048, allocations: 8 kB / 0.6409 GB, free: 14.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.5055, allocations: 159.8 kB / 0.6411 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.5055, allocations: 4 kB / 0.6411 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/0.51, allocations: 0.9924 MB / 0.642 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.992e-05/0.5101, allocations: 27.98 kB / 0.6421 GB, free: 13.56 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003659/0.5105, allocations: 241.1 kB / 0.6423 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.5107, allocations: 90.88 kB / 0.6424 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.512, allocations: 0.5161 MB / 0.6429 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.5121, allocations: 8 kB / 0.6429 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.5121, allocations: 3.938 kB / 0.6429 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.5121, allocations: 3.938 kB / 0.6429 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.5143, allocations: 1.233 MB / 0.6441 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.5143, allocations: 4.031 kB / 0.6441 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/0.5149, allocations: 115.8 kB / 0.6442 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.415e-05/0.5149, allocations: 7.938 kB / 0.6442 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.5149, allocations: 12 kB / 0.6442 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00184/0.5168, allocations: 2.938 MB / 0.6471 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.123e-06/0.5168, allocations: 0 / 0.6471 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.5178, allocations: 0.5655 MB / 0.6477 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.5182, allocations: 203.8 kB / 0.6478 GB, free: 7.379 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.5183, allocations: 11.92 kB / 0.6479 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.5188, allocations: 67.78 kB / 0.6479 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.5189, allocations: 23.97 kB / 0.6479 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.539e-05/0.5189, allocations: 19.98 kB / 0.648 GB, free: 7.258 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007986/0.5197, allocations: 0.5839 MB / 0.6485 GB, free: 6.664 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5198, allocations: 0 / 0.6485 GB, free: 6.664 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001589/0.5213, allocations: 0.5345 MB / 0.6491 GB, free: 6.129 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007729/0.5221, allocations: 340.7 kB / 0.6494 GB, free: 5.801 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002855/0.525, allocations: 0.8617 MB / 0.6502 GB, free: 4.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.525, allocations: 0 / 0.6502 GB, free: 4.941 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000605/0.5256, allocations: 229.5 kB / 0.6504 GB, free: 4.719 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.5275, allocations: 409.8 kB / 0.6508 GB, free: 4.332 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.5304, allocations: 1.867 MB / 0.6527 GB, free: 2.414 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/0.5311, allocations: 1.014 MB / 0.6536 GB, free: 1.371 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/0.5314, allocations: 79.41 kB / 0.6537 GB, free: 1.293 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5314, allocations: 4 kB / 0.6537 GB, free: 1.289 MB / 494.1 MB Notification: Performance of Templates: time 0.047/0.5784, allocations: 35.68 MB / 0.6886 GB, free: 13.86 MB / 0.5294 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)