Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.001456/0.001456, allocations: 87.58 kB / 20.45 MB, free: 4.113 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.001285/0.001285, allocations: 161 kB / 23.82 MB, free: 0.7461 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.019/1.019, allocations: 177.1 MB / 204.2 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.953/1.953, allocations: 377.9 MB / 0.6236 GB, free: 8.52 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 0.8115 GB, free: 1.695 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.261e-05/3.497e-05, allocations: 9.75 kB / 0.8115 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.009924/0.009959, allocations: 7.578 MB / 0.8189 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.004877/0.01484, allocations: 3.136 MB / 0.822 GB, free: 6.984 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000384/0.01522, allocations: 28.25 kB / 0.822 GB, free: 6.957 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0007621/0.01598, allocations: 192 kB / 0.8222 GB, free: 6.77 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.01798, allocations: 0.4933 MB / 0.8227 GB, free: 6.277 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.01909, allocations: 0.7449 MB / 0.8234 GB, free: 5.535 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0007459/0.01983, allocations: 0.9671 MB / 0.8244 GB, free: 4.566 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/0.02016, allocations: 302.7 kB / 0.8247 GB, free: 4.262 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004132/0.02057, allocations: 480 kB / 0.8251 GB, free: 3.793 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.02085, allocations: 271.1 kB / 0.8254 GB, free: 3.527 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.395e-05/0.02089, allocations: 29.06 kB / 0.8254 GB, free: 3.5 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000573/0.02147, allocations: 0.5262 MB / 0.8259 GB, free: 2.973 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.02157, allocations: 143.5 kB / 0.8261 GB, free: 2.832 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.02169, allocations: 166.7 kB / 0.8262 GB, free: 2.672 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006699/0.02236, allocations: 0.6929 MB / 0.8269 GB, free: 1.977 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.02236, allocations: 0 / 0.8269 GB, free: 1.977 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.092e-06/0.02237, allocations: 0 / 0.8269 GB, free: 1.977 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.02237, allocations: 3.938 kB / 0.8269 GB, free: 1.973 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008608/0.02323, allocations: 0.9079 MB / 0.8278 GB, free: 1.027 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.02327, allocations: 12.03 kB / 0.8278 GB, free: 1.016 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.02342, allocations: 90.14 kB / 0.8279 GB, free: 0.9297 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004225/0.02384, allocations: 394.5 kB / 0.8283 GB, free: 0.5234 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.02386, allocations: 21.94 kB / 0.8283 GB, free: 0.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.02389, allocations: 32.36 kB / 0.8283 GB, free: 480 kB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.0242, allocations: 260.1 kB / 0.8286 GB, free: 192 kB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.02421, allocations: 0 / 0.8286 GB, free: 192 kB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.02423, allocations: 12 kB / 0.8286 GB, free: 180 kB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.02424, allocations: 4 kB / 0.8286 GB, free: 176 kB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.02439, allocations: 98.86 kB / 0.8287 GB, free: 80 kB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.02556, allocations: 1.364 MB / 0.83 GB, free: 14.65 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.02573, allocations: 111.2 kB / 0.8301 GB, free: 14.53 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.94e-05/0.02579, allocations: 39.66 kB / 0.8301 GB, free: 14.48 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006522/0.02644, allocations: 0.5701 MB / 0.8307 GB, free: 13.89 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.02646, allocations: 41.39 kB / 0.8307 GB, free: 13.84 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.02647, allocations: 0 / 0.8307 GB, free: 13.84 MB / 0.7917 GB Notification: Performance of matching and sorting (n=15): time 0.0002727/0.02674, allocations: 161.2 kB / 0.8309 GB, free: 13.68 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.02677, allocations: 59.34 kB / 0.8309 GB, free: 13.61 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.02715, allocations: 0.5181 MB / 0.8315 GB, free: 13.07 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.02717, allocations: 29.7 kB / 0.8315 GB, free: 13.04 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.02733, allocations: 335 kB / 0.8318 GB, free: 12.71 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.02736, allocations: 51.59 kB / 0.8318 GB, free: 12.66 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/0.02743, allocations: 83.58 kB / 0.8319 GB, free: 12.56 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.02758, allocations: 0.5313 MB / 0.8324 GB, free: 12.02 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.394e-05/0.02764, allocations: 40.78 kB / 0.8325 GB, free: 11.98 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.02785, allocations: 431.8 kB / 0.8329 GB, free: 11.43 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.02803, allocations: 190.8 kB / 0.8331 GB, free: 11.2 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.02803, allocations: 4 kB / 0.8331 GB, free: 11.2 MB / 0.7917 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002672/0.0283, allocations: 237.1 kB / 0.8333 GB, free: 10.96 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.02832, allocations: 11.98 kB / 0.8333 GB, free: 10.95 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.02832, allocations: 4 kB / 0.8333 GB, free: 10.95 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.02834, allocations: 4 kB / 0.8333 GB, free: 10.94 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.02849, allocations: 60.16 kB / 0.8334 GB, free: 10.88 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.0285, allocations: 15.88 kB / 0.8334 GB, free: 10.87 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.02862, allocations: 31.84 kB / 0.8334 GB, free: 10.84 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.02865, allocations: 15.98 kB / 0.8334 GB, free: 10.82 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001156/0.02876, allocations: 159.4 kB / 0.8336 GB, free: 10.66 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001983/0.02896, allocations: 428.5 kB / 0.834 GB, free: 10.12 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001511/0.02911, allocations: 194.5 kB / 0.8342 GB, free: 9.887 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.02911, allocations: 0 / 0.8342 GB, free: 9.887 MB / 0.7917 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0002482/0.02936, allocations: 238.2 kB / 0.8344 GB, free: 9.648 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.02937, allocations: 8 kB / 0.8344 GB, free: 9.641 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.02937, allocations: 4 kB / 0.8344 GB, free: 9.637 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-06/0.02937, allocations: 4.25 kB / 0.8344 GB, free: 9.633 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.02948, allocations: 63.91 kB / 0.8345 GB, free: 9.57 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.02949, allocations: 4 kB / 0.8345 GB, free: 9.566 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.02961, allocations: 27.83 kB / 0.8345 GB, free: 9.539 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.02962, allocations: 19.98 kB / 0.8345 GB, free: 9.52 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 0.0001021/0.02973, allocations: 288 kB / 0.8348 GB, free: 9.23 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.02978, allocations: 51.67 kB / 0.8349 GB, free: 9.18 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.03002, allocations: 177.3 kB / 0.835 GB, free: 9 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.03002, allocations: 4 kB / 0.835 GB, free: 8.996 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.03003, allocations: 7.938 kB / 0.835 GB, free: 8.988 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.03003, allocations: 3.938 kB / 0.8351 GB, free: 8.984 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005229/0.03055, allocations: 0.6247 MB / 0.8357 GB, free: 8.301 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.03056, allocations: 0 / 0.8357 GB, free: 8.301 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.03062, allocations: 27.98 kB / 0.8357 GB, free: 8.273 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.03062, allocations: 3.938 kB / 0.8357 GB, free: 8.27 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.03063, allocations: 11.94 kB / 0.8357 GB, free: 8.258 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.03064, allocations: 0 / 0.8357 GB, free: 8.258 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.03064, allocations: 12.31 kB / 0.8357 GB, free: 8.246 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.03086, allocations: 348.4 kB / 0.836 GB, free: 7.871 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 7.557e-05/0.03093, allocations: 71.55 kB / 0.8361 GB, free: 7.801 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.03096, allocations: 4 kB / 0.8361 GB, free: 7.797 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.03104, allocations: 11.94 kB / 0.8361 GB, free: 7.785 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.03109, allocations: 19.97 kB / 0.8362 GB, free: 7.766 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.0311, allocations: 4 kB / 0.8362 GB, free: 7.762 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0002373/0.03133, allocations: 338.8 kB / 0.8365 GB, free: 7.434 MB / 0.7917 GB Notification: Performance of sort global known variables: time 6e-08/0.03133, allocations: 0 / 0.8365 GB, free: 7.434 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.000434/0.03177, allocations: 219.5 kB / 0.8367 GB, free: 7.219 MB / 0.7917 GB 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0009252/0.03269, allocations: 433.1 kB / 0.8371 GB, free: 6.91 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0003096/0.033, allocations: 215 kB / 0.8373 GB, free: 6.691 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.033, allocations: 3.938 kB / 0.8373 GB, free: 6.688 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 7.252e-05/0.03308, allocations: 62.89 kB / 0.8374 GB, free: 6.625 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.03372, allocations: 238.8 kB / 0.8376 GB, free: 6.395 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.03501, allocations: 0.7414 MB / 0.8383 GB, free: 5.598 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.463e-05/0.0351, allocations: 125.5 kB / 0.8384 GB, free: 5.453 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0001849/0.03529, allocations: 84.5 kB / 0.8385 GB, free: 5.371 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.996e-05/0.03535, allocations: 40.5 kB / 0.8386 GB, free: 5.332 MB / 0.7917 GB Notification: Performance of SimCode: time 7.81e-07/0.03535, allocations: 4 kB / 0.8386 GB, free: 5.328 MB / 0.7917 GB Notification: Performance of Templates: time 0.01247/0.04781, allocations: 9.554 MB / 0.8479 GB, free: 12.02 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.639416202902794]