Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009667/0.0009668, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007546/0.007547, allocations: 170.8 kB / 16.26 MB, free: 6.676 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.746/2.746, allocations: 462.7 MB / 0.7364 GB, free: 236 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004099, allocations: 12.89 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3483, allocations: 159.6 MB / 1.059 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03157/0.3799, allocations: 28.94 MB / 1.087 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.013/0.3929, allocations: 8.119 MB / 1.095 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001944/0.395, allocations: 31.75 kB / 1.095 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3965, allocations: 342 kB / 1.095 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005117/0.4017, allocations: 1.236 MB / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003411/0.4051, allocations: 1.025 MB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00567/0.4108, allocations: 4.203 MB / 1.102 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002257/0.4131, allocations: 1.155 MB / 1.103 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00357/0.4167, allocations: 1.499 MB / 1.104 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003125/0.4198, allocations: 1.593 MB / 1.106 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000439/0.4203, allocations: 64 kB / 1.106 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002355/0.4227, allocations: 0.9397 MB / 1.107 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004658/0.4231, allocations: 342.7 kB / 1.107 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.4243, allocations: 0.7014 MB / 1.108 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00306/0.4274, allocations: 2.095 MB / 1.11 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4274, allocations: 0 / 1.11 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.555e-06/0.4274, allocations: 8 kB / 1.11 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.306e-05/0.4274, allocations: 0 / 1.11 GB, free: 0.9844 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00257/0.43, allocations: 1.337 MB / 1.111 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4301, allocations: 11.97 kB / 1.111 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.4304, allocations: 147.4 kB / 1.111 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.432, allocations: 0.8909 MB / 1.112 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.4321, allocations: 81.31 kB / 1.112 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/0.4323, allocations: 120 kB / 1.112 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.4335, allocations: 0.6473 MB / 1.113 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4335, allocations: 0 / 1.113 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.558e-05/0.4336, allocations: 20 kB / 1.113 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.4336, allocations: 16 kB / 1.113 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009031/0.4345, allocations: 484.8 kB / 1.113 GB, free: 13.11 MB / 0.8731 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.004746/0.4393, allocations: 2.868 MB / 1.116 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.4399, allocations: 314 kB / 1.116 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/0.4402, allocations: 161.3 kB / 1.117 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003532/0.4406, allocations: 344.7 kB / 1.117 GB, free: 9.207 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.4407, allocations: 38.84 kB / 1.117 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.845e-06/0.4407, allocations: 0 / 1.117 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.001435/0.4421, allocations: 0.5486 MB / 1.118 GB, free: 8.605 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.4421, allocations: 59.34 kB / 1.118 GB, free: 8.535 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.4433, allocations: 0.9074 MB / 1.118 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.4434, allocations: 61.7 kB / 1.119 GB, free: 7.543 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005109/0.4439, allocations: 0.534 MB / 1.119 GB, free: 7 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.4441, allocations: 110.3 kB / 1.119 GB, free: 6.891 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.4442, allocations: 65.69 kB / 1.119 GB, free: 6.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4443, allocations: 334.1 kB / 1.12 GB, free: 6.488 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.4447, allocations: 189.2 kB / 1.12 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001361/0.4461, allocations: 1.155 MB / 1.121 GB, free: 4.785 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008297/0.447, allocations: 475.4 kB / 1.121 GB, free: 4.297 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.447, allocations: 0 / 1.121 GB, free: 4.297 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001305/0.4483, allocations: 0.6618 MB / 1.122 GB, free: 3.625 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.4484, allocations: 152.3 kB / 1.122 GB, free: 3.449 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4484, allocations: 7.938 kB / 1.122 GB, free: 3.441 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4484, allocations: 4 kB / 1.122 GB, free: 3.438 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.4498, allocations: 239.7 kB / 1.122 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.4516, allocations: 2.961 MB / 1.125 GB, free: 128 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003529/0.4551, allocations: 0.7571 MB / 1.126 GB, free: 15.37 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/0.4552, allocations: 27.98 kB / 1.126 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.4552, allocations: 4 kB / 1.126 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001021/0.4563, allocations: 0.5049 MB / 1.126 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4563, allocations: 4 kB / 1.126 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/0.4563, allocations: 4 kB / 1.126 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.457, allocations: 160 kB / 1.127 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.457, allocations: 4 kB / 1.127 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.4604, allocations: 0.7378 MB / 1.127 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.4605, allocations: 27.98 kB / 1.127 GB, free: 13.89 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006489/0.4611, allocations: 325.9 kB / 1.128 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.4613, allocations: 102.7 kB / 1.128 GB, free: 13.46 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.4625, allocations: 0.5166 MB / 1.128 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.4625, allocations: 11.94 kB / 1.128 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.4625, allocations: 0 / 1.128 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4626, allocations: 3.984 kB / 1.128 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.4648, allocations: 1.268 MB / 1.13 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.4648, allocations: 0 / 1.13 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000537/0.4654, allocations: 115.9 kB / 1.13 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.4654, allocations: 0 / 1.13 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.4654, allocations: 15.98 kB / 1.13 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.4671, allocations: 2.946 MB / 1.133 GB, free: 8.398 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.4672, allocations: 4.031 kB / 1.133 GB, free: 8.395 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009967/0.4682, allocations: 0.5791 MB / 1.133 GB, free: 7.789 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003554/0.4685, allocations: 231.6 kB / 1.133 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.013e-05/0.4686, allocations: 8.188 kB / 1.133 GB, free: 7.535 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.4692, allocations: 67.84 kB / 1.133 GB, free: 7.469 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.4693, allocations: 31.89 kB / 1.133 GB, free: 7.438 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.4693, allocations: 19.98 kB / 1.133 GB, free: 7.418 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007831/0.4701, allocations: 0.6045 MB / 1.134 GB, free: 6.805 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4701, allocations: 0 / 1.134 GB, free: 6.805 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001659/0.4718, allocations: 0.5461 MB / 1.135 GB, free: 6.258 MB / 0.8887 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008883/0.4727, allocations: 334.1 kB / 1.135 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002682/0.4754, allocations: 0.8679 MB / 1.136 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4754, allocations: 0 / 1.136 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005975/0.476, allocations: 231.9 kB / 1.136 GB, free: 4.84 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.4788, allocations: 482.1 kB / 1.136 GB, free: 4.371 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.4817, allocations: 1.875 MB / 1.138 GB, free: 2.453 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006249/0.4824, allocations: 1.029 MB / 1.139 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001235/0.4836, allocations: 211 kB / 1.139 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.4838, allocations: 79.41 kB / 1.14 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of SimCode: time 7.01e-07/0.4838, allocations: 0 / 1.14 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of Templates: time 0.0429/0.5267, allocations: 24.41 MB / 1.163 GB, free: 9.109 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches