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.00167/0.00167, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001604/0.001604, allocations: 212.3 kB / 22.99 MB, free: 4.984 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.244/3.244, allocations: 0.49 GB / 0.7959 GB, free: 35.43 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.002116/0.002116, allocations: 68.64 kB / 1.155 GB, free: 25.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3809, allocations: 176.1 MB / 1.327 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.0213/0.4022, allocations: 16.35 MB / 1.343 GB, free: 0.5469 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00848/0.4107, allocations: 4.699 MB / 1.348 GB, free: 11.84 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007193/0.4114, allocations: 23.81 kB / 1.348 GB, free: 11.81 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.4125, allocations: 258.4 kB / 1.348 GB, free: 11.56 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.4144, allocations: 0.6647 MB / 1.349 GB, free: 10.89 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.4166, allocations: 0.7504 MB / 1.349 GB, free: 10.14 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001402/0.418, allocations: 0.9936 MB / 1.35 GB, free: 9.145 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004892/0.4185, allocations: 273.6 kB / 1.351 GB, free: 8.867 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008808/0.4193, allocations: 498 kB / 1.351 GB, free: 8.379 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.4198, allocations: 314.7 kB / 1.351 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.4198, allocations: 32 kB / 1.351 GB, free: 8.039 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.421, allocations: 0.6356 MB / 1.352 GB, free: 7.402 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.4212, allocations: 135.5 kB / 1.352 GB, free: 7.27 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.4214, allocations: 198.9 kB / 1.352 GB, free: 7.074 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.4227, allocations: 0.8717 MB / 1.353 GB, free: 6.199 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.4227, allocations: 0 / 1.353 GB, free: 6.199 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4227, allocations: 0 / 1.353 GB, free: 6.199 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.4227, allocations: 0 / 1.353 GB, free: 6.199 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.001481/0.4242, allocations: 0.8267 MB / 1.354 GB, free: 5.34 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.4243, allocations: 8.031 kB / 1.354 GB, free: 5.332 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.4245, allocations: 64.56 kB / 1.354 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007854/0.4252, allocations: 406.9 kB / 1.354 GB, free: 4.844 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.4253, allocations: 28.38 kB / 1.354 GB, free: 4.816 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.4253, allocations: 31.94 kB / 1.354 GB, free: 4.785 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.4259, allocations: 281.3 kB / 1.355 GB, free: 4.492 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.4259, allocations: 4 kB / 1.355 GB, free: 4.488 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.4259, allocations: 4 kB / 1.355 GB, free: 4.484 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.4259, allocations: 8 kB / 1.355 GB, free: 4.477 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.4264, allocations: 193.8 kB / 1.355 GB, free: 4.285 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.4283, allocations: 1.167 MB / 1.356 GB, free: 3.07 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.4286, allocations: 158.7 kB / 1.356 GB, free: 2.906 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.4288, allocations: 80.8 kB / 1.356 GB, free: 2.824 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.4301, allocations: 0.5273 MB / 1.357 GB, free: 2.277 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.4301, allocations: 34.56 kB / 1.357 GB, free: 2.234 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.4301, allocations: 0 / 1.357 GB, free: 2.234 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0006933/0.4308, allocations: 249.2 kB / 1.357 GB, free: 1.984 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.4309, allocations: 59.34 kB / 1.357 GB, free: 1.914 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006843/0.4316, allocations: 0.5605 MB / 1.358 GB, free: 1.344 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.4316, allocations: 29.7 kB / 1.358 GB, free: 1.309 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.4319, allocations: 276.3 kB / 1.358 GB, free: 1.035 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.4319, allocations: 51.59 kB / 1.358 GB, free: 0.9844 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.432, allocations: 77.86 kB / 1.358 GB, free: 0.8984 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001949/0.4322, allocations: 350.8 kB / 1.358 GB, free: 0.5469 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.4324, allocations: 81.94 kB / 1.358 GB, free: 476 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.4329, allocations: 452 kB / 1.359 GB, free: 15.92 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.4334, allocations: 238.9 kB / 1.359 GB, free: 15.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4334, allocations: 0 / 1.359 GB, free: 15.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006246/0.434, allocations: 306.2 kB / 1.359 GB, free: 15.35 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.434, allocations: 9.562 kB / 1.359 GB, free: 15.34 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.434, allocations: 7.938 kB / 1.359 GB, free: 15.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.4341, allocations: 7.938 kB / 1.359 GB, free: 15.33 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.4343, allocations: 71.84 kB / 1.36 GB, free: 15.26 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4343, allocations: 4 kB / 1.36 GB, free: 15.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.4346, allocations: 35.81 kB / 1.36 GB, free: 15.22 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.4347, allocations: 12 kB / 1.36 GB, free: 15.21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00033/0.435, allocations: 220.8 kB / 1.36 GB, free: 14.99 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004554/0.4355, allocations: 441.8 kB / 1.36 GB, free: 14.45 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004198/0.4359, allocations: 234.5 kB / 1.36 GB, free: 14.19 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.4359, allocations: 0 / 1.36 GB, free: 14.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006116/0.4365, allocations: 310.5 kB / 1.361 GB, free: 13.88 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.4365, allocations: 8 kB / 1.361 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.4365, allocations: 8.25 kB / 1.361 GB, free: 13.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.4365, allocations: 7.938 kB / 1.361 GB, free: 13.86 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.4368, allocations: 59.91 kB / 1.361 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.4368, allocations: 4 kB / 1.361 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.4371, allocations: 39.86 kB / 1.361 GB, free: 13.76 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.4372, allocations: 12 kB / 1.361 GB, free: 13.75 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.0001657/0.4373, allocations: 203 kB / 1.361 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.75e-05/0.4374, allocations: 47.67 kB / 1.361 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006/0.438, allocations: 265.4 kB / 1.361 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.438, allocations: 4 kB / 1.361 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.438, allocations: 0 / 1.361 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.438, allocations: 0 / 1.361 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.4391, allocations: 0.6418 MB / 1.362 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.4391, allocations: 0 / 1.362 GB, free: 12.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.4392, allocations: 31.97 kB / 1.362 GB, free: 12.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.4392, allocations: 4.188 kB / 1.362 GB, free: 12.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4392, allocations: 7.938 kB / 1.362 GB, free: 12.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4392, allocations: 7.938 kB / 1.362 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4392, allocations: 0 / 1.362 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005452/0.4398, allocations: 359.9 kB / 1.362 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.4399, allocations: 67.66 kB / 1.362 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.44, allocations: 12 kB / 1.362 GB, free: 12.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.4402, allocations: 7.984 kB / 1.362 GB, free: 12.02 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.4402, allocations: 23.92 kB / 1.362 GB, free: 11.99 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.4403, allocations: 11.92 kB / 1.362 GB, free: 11.98 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004877/0.4407, allocations: 402.8 kB / 1.363 GB, free: 11.59 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4407, allocations: 0 / 1.363 GB, free: 11.59 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0007448/0.4415, allocations: 235.5 kB / 1.363 GB, free: 11.36 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.001715/0.4432, allocations: 0.5028 MB / 1.364 GB, free: 11 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007216/0.4439, allocations: 305.4 kB / 1.364 GB, free: 10.71 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4439, allocations: 0 / 1.364 GB, free: 10.71 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.4441, allocations: 83.83 kB / 1.364 GB, free: 10.62 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.4452, allocations: 243 kB / 1.364 GB, free: 10.4 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.4466, allocations: 0.8211 MB / 1.365 GB, free: 9.535 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.4468, allocations: 238.1 kB / 1.365 GB, free: 9.273 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002817/0.4471, allocations: 88.09 kB / 1.365 GB, free: 9.188 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/0.4472, allocations: 43.42 kB / 1.365 GB, free: 9.145 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4472, allocations: 0 / 1.365 GB, free: 9.145 MB / 1.061 GB Notification: Performance of Templates: time 0.01888/0.4661, allocations: 10.93 MB / 1.376 GB, free: 14.45 MB / 1.076 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=400 -s gbode -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/jenkins1/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: 9.330519979994278]