Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.001898/0.001898, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.002041/0.002041, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.64/1.64, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.494/3.494, allocations: 429.5 MB / 0.6729 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.8775 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.989e-05/3.146e-05, allocations: 2.312 kB / 0.8775 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1536/0.1537, allocations: 117.1 MB / 0.9918 GB, free: 1.191 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.04138/0.1951, allocations: 20.66 MB / 1.012 GB, free: 12.49 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006028/0.2011, allocations: 154.6 kB / 1.012 GB, free: 12.34 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 0.005333/0.2064, allocations: 1.296 MB / 1.013 GB, free: 11.03 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 0.01514/0.2216, allocations: 4.041 MB / 1.017 GB, free: 6.969 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.01027/0.2318, allocations: 3.199 MB / 1.02 GB, free: 3.762 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 0.01448/0.2463, allocations: 7.294 MB / 1.028 GB, free: 12.44 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005742/0.2521, allocations: 1.956 MB / 1.03 GB, free: 10.43 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01691/0.269, allocations: 4.096 MB / 1.034 GB, free: 6.352 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00619/0.2752, allocations: 1.897 MB / 1.035 GB, free: 4.449 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.2765, allocations: 252 kB / 1.036 GB, free: 4.203 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005759/0.2822, allocations: 1.442 MB / 1.037 GB, free: 2.758 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.2839, allocations: 0.747 MB / 1.038 GB, free: 2.008 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 0.004012/0.2879, allocations: 1.013 MB / 1.039 GB, free: 0.9922 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.2992, allocations: 4.506 MB / 1.043 GB, free: 12.47 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.2992, allocations: 8 kB / 1.043 GB, free: 12.46 MB / 1.01 GB Notification: Performance of FrontEnd: time 5.951e-06/0.2992, allocations: 4 kB / 1.043 GB, free: 12.46 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0002241/0.2994, allocations: 0 / 1.043 GB, free: 12.46 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.01087/0.3103, allocations: 3.58 MB / 1.047 GB, free: 8.82 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 6.889e-05/0.3104, allocations: 8.031 kB / 1.047 GB, free: 8.812 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002101/0.3125, allocations: 478 kB / 1.047 GB, free: 8.344 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006351/0.3188, allocations: 2.205 MB / 1.049 GB, free: 6.055 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.319, allocations: 123 kB / 1.049 GB, free: 5.934 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004646/0.3194, allocations: 172 kB / 1.05 GB, free: 5.766 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004304/0.3237, allocations: 1.988 MB / 1.051 GB, free: 3.625 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.3238, allocations: 3.938 kB / 1.051 GB, free: 3.621 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.3239, allocations: 64 kB / 1.052 GB, free: 3.559 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.063e-05/0.324, allocations: 39.98 kB / 1.052 GB, free: 3.52 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.3264, allocations: 1.026 MB / 1.053 GB, free: 2.488 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6262/0.9526, allocations: 7.414 MB / 1.06 GB, free: 212.7 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/0.9533, allocations: 423.4 kB / 1.06 GB, free: 212.5 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.9537, allocations: 257.3 kB / 1.06 GB, free: 212.4 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.954, allocations: 82.56 kB / 1.061 GB, free: 212.4 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.954, allocations: 47.64 kB / 1.061 GB, free: 212.4 MB / 1.01 GB Notification: Performance of pre-optimization done (n=60): time 3.437e-06/0.954, allocations: 0 / 1.061 GB, free: 212.4 MB / 1.01 GB Notification: Performance of matching and sorting (n=60): time 0.001841/0.9558, allocations: 0.8661 MB / 1.061 GB, free: 212.1 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.9559, allocations: 58.84 kB / 1.062 GB, free: 212.1 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/0.9586, allocations: 2.533 MB / 1.064 GB, free: 211 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 9.948e-05/0.9587, allocations: 49.86 kB / 1.064 GB, free: 211 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008853/0.9596, allocations: 1.391 MB / 1.065 GB, free: 210 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002052/0.9598, allocations: 243.3 kB / 1.066 GB, free: 209.8 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003613/0.9601, allocations: 314.1 kB / 1.066 GB, free: 209.7 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.9603, allocations: 0.5587 MB / 1.066 GB, free: 209.2 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005121/0.9608, allocations: 313.1 kB / 1.067 GB, free: 209.1 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008805/0.9617, allocations: 1.316 MB / 1.068 GB, free: 207.7 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.9628, allocations: 1.039 MB / 1.069 GB, free: 207 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.9629, allocations: 2.406 kB / 1.069 GB, free: 207 MB / 1.01 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002029/0.9649, allocations: 1.23 MB / 1.07 GB, free: 206.5 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.9649, allocations: 12.44 kB / 1.07 GB, free: 206.5 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.9649, allocations: 8.406 kB / 1.07 GB, free: 206.5 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.965, allocations: 14.77 kB / 1.07 GB, free: 206.5 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000903/0.9659, allocations: 246.1 kB / 1.071 GB, free: 206.5 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.028e-05/0.9659, allocations: 21.78 kB / 1.071 GB, free: 206.5 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.9671, allocations: 126.7 kB / 1.071 GB, free: 206.4 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.172e-05/0.9672, allocations: 51.47 kB / 1.071 GB, free: 206.4 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001112/0.9683, allocations: 0.6884 MB / 1.071 GB, free: 206 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009763/0.9693, allocations: 1.307 MB / 1.073 GB, free: 204.7 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001196/0.9705, allocations: 1.007 MB / 1.074 GB, free: 203.9 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.282e-06/0.9705, allocations: 2.719 kB / 1.074 GB, free: 203.9 MB / 1.01 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001981/0.9725, allocations: 1.197 MB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.9725, allocations: 8.875 kB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.9725, allocations: 8.125 kB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.9725, allocations: 18.62 kB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008272/0.9733, allocations: 249.2 kB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.9734, allocations: 20.69 kB / 1.075 GB, free: 203.4 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.9745, allocations: 106.9 kB / 1.075 GB, free: 203.3 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.9746, allocations: 49.84 kB / 1.075 GB, free: 203.3 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0003029/0.9749, allocations: 337.3 kB / 1.076 GB, free: 203 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.9752, allocations: 241.1 kB / 1.076 GB, free: 202.9 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.9766, allocations: 0.757 MB / 1.077 GB, free: 202.6 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.9766, allocations: 6.391 kB / 1.077 GB, free: 202.6 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.9766, allocations: 5.062 kB / 1.077 GB, free: 202.6 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007402/0.9773, allocations: 0.5811 MB / 1.077 GB, free: 202.3 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00378/0.9811, allocations: 2.669 MB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.9811, allocations: 5.812 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000468/0.9816, allocations: 122 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.9816, allocations: 4.031 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.9816, allocations: 14.31 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.9816, allocations: 2.812 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.9817, allocations: 10.59 kB / 1.08 GB, free: 201 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.9833, allocations: 1.202 MB / 1.081 GB, free: 200.3 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006477/0.9839, allocations: 317.9 kB / 1.081 GB, free: 200.1 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.9841, allocations: 14.62 kB / 1.081 GB, free: 200.1 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007255/0.9849, allocations: 28.53 kB / 1.081 GB, free: 200.1 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.985, allocations: 43.03 kB / 1.081 GB, free: 200.1 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.614e-05/0.985, allocations: 39.73 kB / 1.081 GB, free: 200.1 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.001691/0.9867, allocations: 1.437 MB / 1.083 GB, free: 199.5 MB / 1.01 GB Notification: Performance of sort global known variables: time 1e-07/0.9867, allocations: 0.5938 kB / 1.083 GB, free: 199.5 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.002676/0.9894, allocations: 1.174 MB / 1.084 GB, free: 199.4 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.003077/0.9925, allocations: 0.7742 MB / 1.085 GB, free: 199.2 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.002814/0.9953, allocations: 1.321 MB / 1.086 GB, free: 198.8 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.9953, allocations: 1.188 kB / 1.086 GB, free: 198.8 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0005674/0.9959, allocations: 299.5 kB / 1.086 GB, free: 198.7 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005227/1.001, allocations: 1.211 MB / 1.088 GB, free: 198.4 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005768/1.007, allocations: 3.542 MB / 1.091 GB, free: 196.5 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/1.008, allocations: 0.9932 MB / 1.092 GB, free: 196.3 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.001745/1.01, allocations: 447.9 kB / 1.092 GB, free: 196.2 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/1.01, allocations: 158 kB / 1.093 GB, free: 196.2 MB / 1.01 GB Notification: Performance of SimCode: time 1.493e-06/1.01, allocations: 1.219 kB / 1.093 GB, free: 196.2 MB / 1.01 GB Notification: Performance of Templates: time 0.07922/1.089, allocations: 44.22 MB / 1.136 GB, free: 179.6 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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: 11.364607903989963]