Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008352/0.008352, allocations: 100.9 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 198.9 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.051/3.051, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 63.91 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3911, allocations: 151.6 MB / 1.167 GB, free: 6.809 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.8286/1.22, allocations: 112.7 MB / 1.277 GB, free: 22.89 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03222/1.252, allocations: 20.25 MB / 1.296 GB, free: 20.6 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006618/1.259, allocations: 108.6 kB / 1.296 GB, free: 20.6 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004956/1.264, allocations: 1.273 MB / 1.298 GB, free: 19.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01662/1.28, allocations: 3.677 MB / 1.301 GB, free: 18.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01052/1.291, allocations: 3.131 MB / 1.304 GB, free: 17.04 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0139/1.305, allocations: 7.207 MB / 1.311 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006745/1.312, allocations: 2.584 MB / 1.314 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01016/1.322, allocations: 2.807 MB / 1.317 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006435/1.328, allocations: 2.124 MB / 1.319 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008884/1.329, allocations: 254.9 kB / 1.319 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005534/1.335, allocations: 1.648 MB / 1.321 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008176/1.336, allocations: 0.6926 MB / 1.321 GB, free: 9.488 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002469/1.338, allocations: 1.517 MB / 1.323 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007498/1.346, allocations: 4.405 MB / 1.327 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/1.346, allocations: 1.188 kB / 1.327 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.224e-06/1.346, allocations: 0 / 1.327 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.668e-05/1.346, allocations: 0 / 1.327 GB, free: 6.836 MB / 0.9981 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.007123/1.353, allocations: 3.324 MB / 1.33 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/1.353, allocations: 13.11 kB / 1.33 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/1.354, allocations: 338.7 kB / 1.331 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/1.358, allocations: 2.228 MB / 1.333 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/1.358, allocations: 123.8 kB / 1.333 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/1.359, allocations: 168 kB / 1.333 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003165/1.362, allocations: 1.614 MB / 1.335 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.267e-05/1.362, allocations: 6.062 kB / 1.335 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/1.362, allocations: 66.03 kB / 1.335 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.744e-05/1.362, allocations: 45.47 kB / 1.335 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/1.364, allocations: 1.146 MB / 1.336 GB, free: 1.949 MB / 0.9981 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.01249/1.377, allocations: 7.932 MB / 1.344 GB, free: 11.59 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008944/1.378, allocations: 475.5 kB / 1.344 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005185/1.378, allocations: 327.3 kB / 1.344 GB, free: 11.18 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006745/1.379, allocations: 0.7534 MB / 1.345 GB, free: 10.31 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/1.379, allocations: 42.64 kB / 1.345 GB, free: 10.26 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.445e-06/1.379, allocations: 4 kB / 1.345 GB, free: 10.26 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002654/1.382, allocations: 0.9954 MB / 1.346 GB, free: 9.746 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/1.382, allocations: 56.91 kB / 1.346 GB, free: 9.684 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003634/1.385, allocations: 2.345 MB / 1.349 GB, free: 8.438 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002434/1.386, allocations: 47.55 kB / 1.349 GB, free: 8.391 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001096/1.387, allocations: 1.173 MB / 1.35 GB, free: 7.355 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002797/1.387, allocations: 222.7 kB / 1.35 GB, free: 7.164 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003961/1.387, allocations: 263.4 kB / 1.35 GB, free: 7.004 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001518/1.388, allocations: 347.6 kB / 1.351 GB, free: 6.668 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007138/1.388, allocations: 361.8 kB / 1.351 GB, free: 6.484 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/1.389, allocations: 0.7467 MB / 1.352 GB, free: 5.82 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/1.391, allocations: 0.9861 MB / 1.353 GB, free: 5.105 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/1.391, allocations: 2.438 kB / 1.353 GB, free: 5.105 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00271/1.394, allocations: 1.313 MB / 1.354 GB, free: 4.445 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/1.394, allocations: 8.281 kB / 1.354 GB, free: 4.445 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/1.394, allocations: 8.438 kB / 1.354 GB, free: 4.445 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.359e-05/1.394, allocations: 14.25 kB / 1.354 GB, free: 4.445 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000964/1.395, allocations: 246 kB / 1.354 GB, free: 4.391 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.73e-05/1.395, allocations: 26.89 kB / 1.354 GB, free: 4.379 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/1.397, allocations: 166 kB / 1.354 GB, free: 4.266 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/1.397, allocations: 53.33 kB / 1.354 GB, free: 4.254 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001722/1.399, allocations: 0.7555 MB / 1.355 GB, free: 3.801 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009398/1.4, allocations: 0.7402 MB / 1.356 GB, free: 3.137 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001336/1.401, allocations: 0.9481 MB / 1.357 GB, free: 2.43 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/1.401, allocations: 6.781 kB / 1.357 GB, free: 2.426 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002779/1.404, allocations: 1.266 MB / 1.358 GB, free: 1.785 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/1.404, allocations: 8.125 kB / 1.358 GB, free: 1.785 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.404, allocations: 10.86 kB / 1.358 GB, free: 1.785 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/1.404, allocations: 18.27 kB / 1.358 GB, free: 1.781 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/1.405, allocations: 253.8 kB / 1.358 GB, free: 1.719 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/1.405, allocations: 22.05 kB / 1.358 GB, free: 1.711 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.407, allocations: 126.1 kB / 1.358 GB, free: 1.633 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.215e-05/1.407, allocations: 52.77 kB / 1.358 GB, free: 1.621 MB / 1.014 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.0003842/1.407, allocations: 244.2 kB / 1.359 GB, free: 1.391 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/1.408, allocations: 253.8 kB / 1.359 GB, free: 1.25 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/1.41, allocations: 0.889 MB / 1.36 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/1.41, allocations: 3.031 kB / 1.36 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/1.41, allocations: 6.469 kB / 1.36 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009945/1.411, allocations: 0.6811 MB / 1.36 GB, free: 328 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004388/1.415, allocations: 2.582 MB / 1.363 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/1.415, allocations: 7.969 kB / 1.363 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/1.416, allocations: 129.6 kB / 1.363 GB, free: 14.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/1.416, allocations: 2.875 kB / 1.363 GB, free: 14.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/1.416, allocations: 16.03 kB / 1.363 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.645e-06/1.416, allocations: 6.812 kB / 1.363 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.416, allocations: 0 / 1.363 GB, free: 14.47 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/1.418, allocations: 1.335 MB / 1.364 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009716/1.419, allocations: 428.3 kB / 1.365 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/1.419, allocations: 10.5 kB / 1.365 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009728/1.42, allocations: 51.44 kB / 1.365 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/1.42, allocations: 45.41 kB / 1.365 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/1.42, allocations: 30.89 kB / 1.365 GB, free: 13.25 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002355/1.423, allocations: 1.568 MB / 1.367 GB, free: 12.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.11e-07/1.423, allocations: 0 / 1.367 GB, free: 12.41 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003369/1.426, allocations: 1.12 MB / 1.368 GB, free: 12.1 MB / 1.029 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.002076/1.428, allocations: 0.7517 MB / 1.368 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00278/1.431, allocations: 1.354 MB / 1.37 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.431, allocations: 3.938 kB / 1.37 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005276/1.431, allocations: 328.4 kB / 1.37 GB, free: 9.801 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00597/1.437, allocations: 1.39 MB / 1.371 GB, free: 8.461 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006555/1.444, allocations: 3.747 MB / 1.375 GB, free: 4.676 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/1.445, allocations: 1.594 MB / 1.377 GB, free: 3.051 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002126/1.447, allocations: 494.6 kB / 1.377 GB, free: 2.566 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/1.448, allocations: 179.4 kB / 1.377 GB, free: 2.391 MB / 1.029 GB Notification: Performance of SimCode: time 2.685e-06/1.448, allocations: 0 / 1.377 GB, free: 2.391 MB / 1.029 GB Notification: Performance of Templates: time 0.08027/1.528, allocations: 44.8 MB / 1.421 GB, free: 6.203 MB / 1.076 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches