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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008646/0.0008647, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 182.8 kB / 16.92 MB, free: 6.922 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.857/2.857, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003594, allocations: 12.44 kB / 0.9034 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3586, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03717/0.3958, allocations: 28.94 MB / 1.088 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01256/0.4084, allocations: 8.117 MB / 1.096 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/0.4102, allocations: 27.75 kB / 1.096 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.4117, allocations: 346 kB / 1.096 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004644/0.4164, allocations: 1.227 MB / 1.097 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003974/0.4203, allocations: 1.044 MB / 1.098 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006208/0.4266, allocations: 4.196 MB / 1.102 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002267/0.4289, allocations: 1.159 MB / 1.103 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0034/0.4323, allocations: 1.499 MB / 1.105 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003347/0.4356, allocations: 1.597 MB / 1.106 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0007118/0.4364, allocations: 64 kB / 1.106 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002842/0.4392, allocations: 0.9397 MB / 1.107 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008537/0.4401, allocations: 338.7 kB / 1.108 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.4419, allocations: 0.7054 MB / 1.108 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002485/0.4444, allocations: 1.547 MB / 1.11 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4444, allocations: 0 / 1.11 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4444, allocations: 0 / 1.11 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.698e-05/0.4445, allocations: 0 / 1.11 GB, free: 1.039 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.003109/0.4476, allocations: 1.34 MB / 1.111 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.4476, allocations: 15.97 kB / 1.111 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006412/0.4483, allocations: 147.4 kB / 1.111 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.4503, allocations: 0.887 MB / 1.112 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.4505, allocations: 85.31 kB / 1.112 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003439/0.4508, allocations: 116 kB / 1.112 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.4522, allocations: 0.6551 MB / 1.113 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.4522, allocations: 3.938 kB / 1.113 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.675e-05/0.4522, allocations: 28 kB / 1.113 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.4523, allocations: 16 kB / 1.113 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.4533, allocations: 472.8 kB / 1.113 GB, free: 13.15 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.005288/0.4586, allocations: 2.875 MB / 1.116 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006692/0.4593, allocations: 315.2 kB / 1.117 GB, free: 9.809 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.4596, allocations: 153.3 kB / 1.117 GB, free: 9.656 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003591/0.46, allocations: 344.7 kB / 1.117 GB, free: 9.246 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.46, allocations: 34.84 kB / 1.117 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.364e-06/0.4601, allocations: 0 / 1.117 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.00141/0.4615, allocations: 0.5564 MB / 1.118 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.4615, allocations: 55.41 kB / 1.118 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.4629, allocations: 0.9074 MB / 1.119 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001776/0.4631, allocations: 53.7 kB / 1.119 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.00057/0.4636, allocations: 0.534 MB / 1.119 GB, free: 7.047 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4638, allocations: 114.3 kB / 1.119 GB, free: 6.934 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.09e-05/0.4639, allocations: 61.67 kB / 1.119 GB, free: 6.867 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.464, allocations: 330.1 kB / 1.12 GB, free: 6.539 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004292/0.4644, allocations: 193.2 kB / 1.12 GB, free: 6.352 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.4659, allocations: 1.155 MB / 1.121 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008995/0.4668, allocations: 471.4 kB / 1.121 GB, free: 4.34 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4668, allocations: 0 / 1.121 GB, free: 4.34 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001407/0.4682, allocations: 0.6657 MB / 1.122 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.4683, allocations: 148.3 kB / 1.122 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.4684, allocations: 3.938 kB / 1.122 GB, free: 3.488 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.4684, allocations: 11.98 kB / 1.122 GB, free: 3.477 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.4698, allocations: 231.7 kB / 1.122 GB, free: 3.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.4717, allocations: 2.953 MB / 1.125 GB, free: 184 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/0.4752, allocations: 0.7612 MB / 1.126 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.64e-05/0.4753, allocations: 31.92 kB / 1.126 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.4753, allocations: 6.031 kB / 1.126 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001034/0.4763, allocations: 0.5011 MB / 1.127 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4764, allocations: 0 / 1.127 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.926e-06/0.4764, allocations: 8 kB / 1.127 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/0.477, allocations: 159.8 kB / 1.127 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.4771, allocations: 4.188 kB / 1.127 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003427/0.4805, allocations: 0.7379 MB / 1.127 GB, free: 13.97 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/0.4806, allocations: 24 kB / 1.128 GB, free: 13.95 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.0006372/0.4812, allocations: 329.9 kB / 1.128 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.4815, allocations: 98.69 kB / 1.128 GB, free: 13.52 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.4828, allocations: 0.5282 MB / 1.128 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.4828, allocations: 4 kB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.4828, allocations: 0 / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4828, allocations: 4.172 kB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002377/0.4852, allocations: 1.26 MB / 1.13 GB, free: 11.65 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4852, allocations: 8.031 kB / 1.13 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.4858, allocations: 123.8 kB / 1.13 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.4858, allocations: 8 kB / 1.13 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.4858, allocations: 8 kB / 1.13 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.4875, allocations: 2.946 MB / 1.133 GB, free: 8.445 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4875, allocations: 0 / 1.133 GB, free: 8.445 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.4885, allocations: 0.5896 MB / 1.133 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004567/0.489, allocations: 223.7 kB / 1.133 GB, free: 7.59 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.4891, allocations: 11.98 kB / 1.133 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006395/0.4898, allocations: 63.84 kB / 1.134 GB, free: 7.516 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.4899, allocations: 27.91 kB / 1.134 GB, free: 7.488 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.4899, allocations: 16 kB / 1.134 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009076/0.4908, allocations: 0.6084 MB / 1.134 GB, free: 6.855 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4908, allocations: 0 / 1.134 GB, free: 6.855 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001825/0.4927, allocations: 0.5461 MB / 1.135 GB, free: 6.309 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.0008975/0.4936, allocations: 332.4 kB / 1.135 GB, free: 5.98 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002914/0.4965, allocations: 0.8583 MB / 1.136 GB, free: 5.125 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.4965, allocations: 4.375 kB / 1.136 GB, free: 5.121 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.4972, allocations: 231.7 kB / 1.136 GB, free: 4.895 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00309/0.5003, allocations: 474.2 kB / 1.137 GB, free: 4.434 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.5037, allocations: 1.921 MB / 1.138 GB, free: 2.465 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.5044, allocations: 1.025 MB / 1.139 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/0.5047, allocations: 79.42 kB / 1.139 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of SimCode: time 2.445e-06/0.5047, allocations: 3.938 kB / 1.14 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of Templates: time 0.04887/0.5535, allocations: 36.28 MB / 1.175 GB, free: 13.29 MB / 0.9356 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/jenkins1/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