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.001483/0.001483, allocations: 80.69 kB / 19.18 MB, free: 2.516 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.001746/0.001746, allocations: 162.7 kB / 22.46 MB, free: 5.375 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.627/1.627, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 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.278/3.278, allocations: 389 MB / 0.633 GB, free: 0.9922 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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 2.184e-06/2.184e-06, allocations: 0 / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.37e-05/3.589e-05, allocations: 2.281 kB / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1318/0.1319, allocations: 102.9 MB / 1.101 GB, free: 56 kB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.03546/0.1673, allocations: 18.79 MB / 1.119 GB, free: 13.22 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006295/0.1736, allocations: 146.7 kB / 1.119 GB, free: 13.08 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.006022/0.1796, allocations: 1.292 MB / 1.12 GB, free: 11.78 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01791/0.1975, allocations: 4.045 MB / 1.124 GB, free: 7.715 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.01079/0.2083, allocations: 3.243 MB / 1.127 GB, free: 4.508 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.7916/0.9999, allocations: 7.247 MB / 1.135 GB, free: 74.68 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00443/1.004, allocations: 1.891 MB / 1.136 GB, free: 74.52 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01353/1.018, allocations: 4.052 MB / 1.14 GB, free: 74.52 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005959/1.024, allocations: 1.848 MB / 1.142 GB, free: 74.43 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0007586/1.025, allocations: 252.9 kB / 1.142 GB, free: 74.43 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004836/1.029, allocations: 1.448 MB / 1.144 GB, free: 74.37 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0007489/1.03, allocations: 0.7352 MB / 1.145 GB, free: 74.22 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.001936/1.032, allocations: 1.001 MB / 1.146 GB, free: 74.09 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.006749/1.039, allocations: 4.475 MB / 1.15 GB, free: 73.87 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/1.039, allocations: 0 / 1.15 GB, free: 73.87 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.984e-06/1.039, allocations: 0.8438 kB / 1.15 GB, free: 73.87 MB / 1.076 GB Notification: Performance of Transformations before backend: time 9.718e-05/1.039, allocations: 0 / 1.15 GB, free: 73.87 MB / 1.076 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.006066/1.045, allocations: 3.179 MB / 1.153 GB, free: 72.41 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/1.045, allocations: 8.75 kB / 1.153 GB, free: 72.41 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009412/1.046, allocations: 334.6 kB / 1.153 GB, free: 72.25 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003919/1.05, allocations: 2.139 MB / 1.155 GB, free: 71.68 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/1.05, allocations: 123.2 kB / 1.156 GB, free: 71.68 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002558/1.05, allocations: 172 kB / 1.156 GB, free: 71.67 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/1.053, allocations: 1.907 MB / 1.158 GB, free: 71.1 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.353e-05/1.053, allocations: 6.422 kB / 1.158 GB, free: 71.1 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/1.053, allocations: 68.88 kB / 1.158 GB, free: 71.1 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-05/1.053, allocations: 39.66 kB / 1.158 GB, free: 71.1 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002093/1.056, allocations: 1.14 MB / 1.159 GB, free: 71.09 MB / 1.076 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/1.066, allocations: 5.482 MB / 1.164 GB, free: 69.41 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008937/1.067, allocations: 441.5 kB / 1.165 GB, free: 69.39 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006426/1.067, allocations: 294.4 kB / 1.165 GB, free: 69.38 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000413/1.068, allocations: 80.8 kB / 1.165 GB, free: 69.38 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/1.068, allocations: 42 kB / 1.165 GB, free: 69.34 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.815e-06/1.068, allocations: 4 kB / 1.165 GB, free: 69.33 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002996/1.071, allocations: 0.9715 MB / 1.166 GB, free: 69.18 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/1.071, allocations: 58.28 kB / 1.166 GB, free: 69.11 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/1.074, allocations: 2.061 MB / 1.168 GB, free: 68.85 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0002039/1.075, allocations: 47.02 kB / 1.168 GB, free: 68.82 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009769/1.076, allocations: 1.165 MB / 1.169 GB, free: 68.4 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/1.076, allocations: 224.3 kB / 1.169 GB, free: 68.26 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004373/1.076, allocations: 248.4 kB / 1.17 GB, free: 68.23 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001116/1.076, allocations: 357.2 kB / 1.17 GB, free: 67.92 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006944/1.077, allocations: 361.4 kB / 1.17 GB, free: 67.91 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/1.078, allocations: 1.197 MB / 1.171 GB, free: 66.93 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/1.08, allocations: 0.9846 MB / 1.172 GB, free: 66.62 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/1.08, allocations: 3.281 kB / 1.172 GB, free: 66.62 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002772/1.083, allocations: 1.277 MB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/1.083, allocations: 11.39 kB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/1.083, allocations: 12.38 kB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.917e-05/1.083, allocations: 13.75 kB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.084, allocations: 251.8 kB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-05/1.084, allocations: 19 kB / 1.174 GB, free: 66.46 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.085, allocations: 132.8 kB / 1.174 GB, free: 66.4 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/1.086, allocations: 57.02 kB / 1.174 GB, free: 66.39 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001944/1.087, allocations: 0.7608 MB / 1.175 GB, free: 66.31 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001116/1.089, allocations: 1.191 MB / 1.176 GB, free: 65.32 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001385/1.09, allocations: 0.9533 MB / 1.177 GB, free: 65 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.602e-06/1.09, allocations: 2.344 kB / 1.177 GB, free: 65 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002697/1.093, allocations: 1.251 MB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/1.093, allocations: 9.969 kB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.093, allocations: 8.531 kB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/1.093, allocations: 18.25 kB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000977/1.094, allocations: 249.9 kB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.443e-05/1.094, allocations: 18.12 kB / 1.178 GB, free: 64.82 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/1.095, allocations: 124.4 kB / 1.179 GB, free: 64.78 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/1.095, allocations: 50.25 kB / 1.179 GB, free: 64.78 MB / 1.076 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.0004447/1.096, allocations: 256.3 kB / 1.179 GB, free: 64.59 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003949/1.096, allocations: 219.5 kB / 1.179 GB, free: 64.46 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/1.098, allocations: 0.8631 MB / 1.18 GB, free: 64.4 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/1.099, allocations: 11.16 kB / 1.18 GB, free: 64.39 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/1.099, allocations: 2.953 kB / 1.18 GB, free: 64.39 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00118/1.1, allocations: 0.6908 MB / 1.181 GB, free: 64.23 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/1.105, allocations: 2.18 MB / 1.183 GB, free: 63.94 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/1.105, allocations: 0.7188 kB / 1.183 GB, free: 63.94 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006049/1.105, allocations: 130.1 kB / 1.183 GB, free: 63.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.609e-06/1.105, allocations: 3.656 kB / 1.183 GB, free: 63.93 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.258e-05/1.105, allocations: 16.53 kB / 1.183 GB, free: 63.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.288e-06/1.105, allocations: 7.125 kB / 1.183 GB, free: 63.93 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.105, allocations: 2.922 kB / 1.183 GB, free: 63.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002871/1.108, allocations: 1.302 MB / 1.184 GB, free: 63.64 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009496/1.109, allocations: 313.7 kB / 1.184 GB, free: 63.52 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/1.109, allocations: 10.64 kB / 1.185 GB, free: 63.52 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.11, allocations: 58.66 kB / 1.185 GB, free: 63.51 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/1.11, allocations: 42.92 kB / 1.185 GB, free: 63.51 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/1.111, allocations: 33.72 kB / 1.185 GB, free: 63.51 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.002475/1.113, allocations: 1.362 MB / 1.186 GB, free: 63.1 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/1.113, allocations: 0 / 1.186 GB, free: 63.1 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.004686/1.118, allocations: 1.168 MB / 1.187 GB, free: 62.82 MB / 1.076 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.002759/1.12, allocations: 0.7771 MB / 1.188 GB, free: 62.58 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.003395/1.124, allocations: 1.281 MB / 1.189 GB, free: 62.23 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.124, allocations: 5.375 kB / 1.189 GB, free: 62.23 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0006276/1.125, allocations: 307.9 kB / 1.189 GB, free: 62.14 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006379/1.131, allocations: 1.146 MB / 1.191 GB, free: 61.8 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007428/1.138, allocations: 3.592 MB / 1.194 GB, free: 59.97 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/1.14, allocations: 1.015 MB / 1.195 GB, free: 59.73 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.002713/1.143, allocations: 466.2 kB / 1.195 GB, free: 59.61 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/1.143, allocations: 166 kB / 1.196 GB, free: 59.59 MB / 1.076 GB Notification: Performance of SimCode: time 1.724e-06/1.143, allocations: 1.281 kB / 1.196 GB, free: 59.59 MB / 1.076 GB Notification: Performance of Templates: time 0.082/1.225, allocations: 43.46 MB / 1.238 GB, free: 49.26 MB / 1.076 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) [Timeout 800] 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: 12.179713860154152]