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.001893/0.001893, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002551/0.002551, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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.679/1.679, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.599/3.599, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings 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.002105/0.002105, allocations: 69.53 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4827/0.4848, allocations: 176.1 MB / 1.326 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02295/0.5078, allocations: 16.35 MB / 1.341 GB, free: 1.457 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.009141/0.5169, allocations: 4.684 MB / 1.346 GB, free: 12.75 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009312/0.5179, allocations: 19.81 kB / 1.346 GB, free: 12.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.5192, allocations: 262.4 kB / 1.346 GB, free: 12.47 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.002647/0.5219, allocations: 0.6676 MB / 1.347 GB, free: 11.8 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.002873/0.5248, allocations: 0.7464 MB / 1.348 GB, free: 11.06 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.002158/0.5269, allocations: 0.9857 MB / 1.349 GB, free: 10.08 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008061/0.5277, allocations: 281.6 kB / 1.349 GB, free: 9.793 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001339/0.5291, allocations: 494 kB / 1.349 GB, free: 9.309 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000753/0.5298, allocations: 302.6 kB / 1.35 GB, free: 9.012 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.53, allocations: 32 kB / 1.35 GB, free: 8.98 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.5316, allocations: 0.6161 MB / 1.35 GB, free: 8.363 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.5319, allocations: 127.5 kB / 1.35 GB, free: 8.238 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0005075/0.5324, allocations: 206.9 kB / 1.351 GB, free: 8.035 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.002263/0.5346, allocations: 0.8677 MB / 1.352 GB, free: 7.168 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.5346, allocations: 0 / 1.352 GB, free: 7.168 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.294e-06/0.5346, allocations: 0 / 1.352 GB, free: 7.168 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.867e-05/0.5347, allocations: 0 / 1.352 GB, free: 7.168 MB / 1.045 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.002084/0.5367, allocations: 0.8277 MB / 1.352 GB, free: 6.309 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.5368, allocations: 12.03 kB / 1.352 GB, free: 6.297 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.5371, allocations: 64.56 kB / 1.352 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.5382, allocations: 402.9 kB / 1.353 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.5383, allocations: 28.44 kB / 1.353 GB, free: 5.789 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/0.5383, allocations: 28 kB / 1.353 GB, free: 5.762 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.539, allocations: 285.2 kB / 1.353 GB, free: 5.465 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.539, allocations: 4 kB / 1.353 GB, free: 5.461 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.539, allocations: 4 kB / 1.353 GB, free: 5.457 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.5391, allocations: 8 kB / 1.353 GB, free: 5.449 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.5395, allocations: 185.8 kB / 1.353 GB, free: 5.266 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.5419, allocations: 1.17 MB / 1.354 GB, free: 4.047 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.5423, allocations: 154.8 kB / 1.355 GB, free: 3.887 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.5425, allocations: 86.67 kB / 1.355 GB, free: 3.801 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001487/0.5439, allocations: 0.5272 MB / 1.355 GB, free: 3.254 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.544, allocations: 34.56 kB / 1.355 GB, free: 3.211 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.544, allocations: 0 / 1.355 GB, free: 3.211 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.000742/0.5447, allocations: 255.1 kB / 1.355 GB, free: 2.957 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.5448, allocations: 59.39 kB / 1.356 GB, free: 2.887 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007816/0.5456, allocations: 0.5605 MB / 1.356 GB, free: 2.316 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.5456, allocations: 29.7 kB / 1.356 GB, free: 2.281 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.5459, allocations: 272.3 kB / 1.356 GB, free: 2.012 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.924e-05/0.5459, allocations: 51.58 kB / 1.356 GB, free: 1.961 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.5461, allocations: 77.88 kB / 1.356 GB, free: 1.875 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002333/0.5463, allocations: 358.7 kB / 1.357 GB, free: 1.516 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.5465, allocations: 81.94 kB / 1.357 GB, free: 1.434 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.547, allocations: 450 kB / 1.357 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004741/0.5475, allocations: 238.9 kB / 1.358 GB, free: 0.625 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5475, allocations: 0 / 1.358 GB, free: 0.625 MB / 1.045 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007034/0.5482, allocations: 306.8 kB / 1.358 GB, free: 328 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.5482, allocations: 4 kB / 1.358 GB, free: 324 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.5482, allocations: 8.188 kB / 1.358 GB, free: 316 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.5483, allocations: 8 kB / 1.358 GB, free: 308 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.5486, allocations: 63.91 kB / 1.358 GB, free: 244 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.5486, allocations: 11.92 kB / 1.358 GB, free: 232 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.5489, allocations: 35.81 kB / 1.358 GB, free: 196 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.624e-05/0.5489, allocations: 12 kB / 1.358 GB, free: 184 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003861/0.5493, allocations: 220.6 kB / 1.358 GB, free: 15.96 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004528/0.5498, allocations: 437.8 kB / 1.359 GB, free: 15.43 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004514/0.5502, allocations: 234.7 kB / 1.359 GB, free: 15.17 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.5502, allocations: 0 / 1.359 GB, free: 15.17 MB / 1.061 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000715/0.5509, allocations: 305 kB / 1.359 GB, free: 14.86 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.551, allocations: 8 kB / 1.359 GB, free: 14.86 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.551, allocations: 4 kB / 1.359 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/0.551, allocations: 7.938 kB / 1.359 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.5512, allocations: 67.89 kB / 1.359 GB, free: 14.78 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.5512, allocations: 8.188 kB / 1.359 GB, free: 14.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.5516, allocations: 35.88 kB / 1.359 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.5516, allocations: 16.17 kB / 1.359 GB, free: 14.72 MB / 1.061 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.0001702/0.5518, allocations: 200.1 kB / 1.359 GB, free: 14.52 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.342e-05/0.5519, allocations: 51.67 kB / 1.359 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006097/0.5525, allocations: 266.9 kB / 1.36 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5525, allocations: 8 kB / 1.36 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5525, allocations: 0 / 1.36 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.5525, allocations: 0 / 1.36 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.5536, allocations: 0.6378 MB / 1.36 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5536, allocations: 0 / 1.36 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.5538, allocations: 27.98 kB / 1.36 GB, free: 13.47 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.5538, allocations: 7.984 kB / 1.36 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.5538, allocations: 8.125 kB / 1.36 GB, free: 13.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.5538, allocations: 7.938 kB / 1.36 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5538, allocations: 0 / 1.36 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005696/0.5544, allocations: 356.5 kB / 1.361 GB, free: 13.07 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.5545, allocations: 63.81 kB / 1.361 GB, free: 13.01 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.5546, allocations: 11.98 kB / 1.361 GB, free: 13 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.5548, allocations: 15.92 kB / 1.361 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.5549, allocations: 15.92 kB / 1.361 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.5549, allocations: 8 kB / 1.361 GB, free: 12.96 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005652/0.5554, allocations: 406.8 kB / 1.361 GB, free: 12.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.5554, allocations: 0 / 1.361 GB, free: 12.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0008315/0.5563, allocations: 235.5 kB / 1.361 GB, free: 12.34 MB / 1.061 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.001943/0.5582, allocations: 0.508 MB / 1.362 GB, free: 11.97 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008128/0.559, allocations: 306 kB / 1.362 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.559, allocations: 256 / 1.362 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.5593, allocations: 87.83 kB / 1.362 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.5604, allocations: 219 kB / 1.363 GB, free: 11.38 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.5622, allocations: 0.8211 MB / 1.363 GB, free: 10.52 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.5625, allocations: 238.1 kB / 1.364 GB, free: 10.26 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.00038/0.5629, allocations: 104.4 kB / 1.364 GB, free: 10.16 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.563, allocations: 43.42 kB / 1.364 GB, free: 10.11 MB / 1.061 GB Notification: Performance of SimCode: time 5.91e-07/0.563, allocations: 0 / 1.364 GB, free: 10.11 MB / 1.061 GB Notification: Performance of Templates: time 0.02063/0.5836, allocations: 10.84 MB / 1.374 GB, free: 15.51 MB / 1.076 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.880755251273513]