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.001525/0.001525, allocations: 110 kB / 16.41 MB, free: 6.5 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.001528/0.001529, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.439/1.439, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.752/2.752, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 60.12 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9356/0.9372, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03645/0.9736, allocations: 29.81 MB / 1.238 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01508/0.9888, allocations: 8.148 MB / 1.245 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.9906, allocations: 31.75 kB / 1.246 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.9922, allocations: 425 kB / 1.246 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004889/0.9972, allocations: 1.383 MB / 1.247 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003394/1.001, allocations: 1.141 MB / 1.248 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.004901/1.006, allocations: 3.54 MB / 1.252 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/1.008, allocations: 1.337 MB / 1.253 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/1.012, allocations: 1.691 MB / 1.255 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003604/1.015, allocations: 1.628 MB / 1.256 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0008316/1.016, allocations: 132 kB / 1.257 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003035/1.019, allocations: 1.01 MB / 1.258 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0008527/1.02, allocations: 410.7 kB / 1.258 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001802/1.022, allocations: 0.7544 MB / 1.259 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004285/1.026, allocations: 2.191 MB / 1.261 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.026, allocations: 0 / 1.261 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.224e-06/1.026, allocations: 0 / 1.261 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.888e-05/1.026, allocations: 0 / 1.261 GB, free: 7.848 MB / 0.9825 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.004209/1.03, allocations: 1.675 MB / 1.262 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/1.03, allocations: 12.03 kB / 1.262 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000636/1.031, allocations: 151.4 kB / 1.263 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002222/1.033, allocations: 0.922 MB / 1.263 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.758e-05/1.033, allocations: 81.31 kB / 1.264 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/1.034, allocations: 123.9 kB / 1.264 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/1.035, allocations: 0.6356 MB / 1.264 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/1.035, allocations: 0 / 1.264 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/1.035, allocations: 20 kB / 1.264 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/1.035, allocations: 16 kB / 1.264 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009516/1.036, allocations: 472.8 kB / 1.265 GB, free: 3.621 MB / 0.9825 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.005349/1.041, allocations: 2.871 MB / 1.268 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/1.042, allocations: 303.2 kB / 1.268 GB, free: 296 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/1.042, allocations: 153.3 kB / 1.268 GB, free: 140 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003398/1.043, allocations: 340.7 kB / 1.268 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/1.043, allocations: 38.84 kB / 1.268 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.374e-06/1.043, allocations: 0 / 1.268 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.00148/1.044, allocations: 0.5221 MB / 1.269 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/1.044, allocations: 59.41 kB / 1.269 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/1.046, allocations: 0.9114 MB / 1.27 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001937/1.046, allocations: 57.7 kB / 1.27 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/1.046, allocations: 482.6 kB / 1.27 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/1.046, allocations: 118.4 kB / 1.27 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004495/1.047, allocations: 294.9 kB / 1.271 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001234/1.047, allocations: 334.1 kB / 1.271 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004377/1.047, allocations: 197.4 kB / 1.271 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/1.049, allocations: 1.147 MB / 1.272 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00085/1.05, allocations: 459.4 kB / 1.273 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/1.05, allocations: 4 kB / 1.273 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001435/1.051, allocations: 0.6501 MB / 1.273 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/1.051, allocations: 8 kB / 1.273 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/1.051, allocations: 0 / 1.273 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/1.051, allocations: 4.188 kB / 1.273 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/1.053, allocations: 235.7 kB / 1.274 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/1.054, allocations: 2.961 MB / 1.277 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.058, allocations: 0.6948 MB / 1.277 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.681e-05/1.058, allocations: 27.94 kB / 1.277 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008239/1.059, allocations: 373.3 kB / 1.278 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001435/1.06, allocations: 1.154 MB / 1.279 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008069/1.061, allocations: 460.7 kB / 1.279 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.697e-06/1.061, allocations: 0 / 1.279 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00165/1.063, allocations: 0.6627 MB / 1.28 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.063, allocations: 8 kB / 1.28 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/1.063, allocations: 0 / 1.28 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/1.063, allocations: 11.94 kB / 1.28 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006521/1.063, allocations: 155.8 kB / 1.28 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/1.063, allocations: 8.297 kB / 1.28 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00456/1.068, allocations: 0.9613 MB / 1.281 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.073e-05/1.068, allocations: 27.98 kB / 1.281 GB, free: 1.762 MB / 0.9981 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.0003843/1.069, allocations: 247.2 kB / 1.281 GB, free: 1.516 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/1.069, allocations: 98.69 kB / 1.281 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/1.07, allocations: 0.497 MB / 1.282 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/1.07, allocations: 4 kB / 1.282 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/1.07, allocations: 0 / 1.282 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/1.07, allocations: 7.922 kB / 1.282 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/1.073, allocations: 1.262 MB / 1.283 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/1.073, allocations: 7.875 kB / 1.283 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/1.073, allocations: 111.8 kB / 1.283 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/1.073, allocations: 4 kB / 1.283 GB, free: 15.44 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/1.073, allocations: 12 kB / 1.283 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/1.075, allocations: 2.942 MB / 1.286 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.075, allocations: 4.031 kB / 1.286 GB, free: 12.37 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/1.076, allocations: 0.5673 MB / 1.287 GB, free: 11.77 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004063/1.076, allocations: 215.7 kB / 1.287 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/1.076, allocations: 8 kB / 1.287 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/1.077, allocations: 35.95 kB / 1.287 GB, free: 11.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.945e-05/1.077, allocations: 27.91 kB / 1.287 GB, free: 11.47 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-05/1.077, allocations: 16 kB / 1.287 GB, free: 11.46 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008798/1.078, allocations: 0.6045 MB / 1.287 GB, free: 10.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.61e-07/1.078, allocations: 0 / 1.287 GB, free: 10.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001725/1.08, allocations: 0.5423 MB / 1.288 GB, free: 10.3 MB / 1.014 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.0008012/1.081, allocations: 330.1 kB / 1.288 GB, free: 9.977 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002841/1.083, allocations: 0.8467 MB / 1.289 GB, free: 9.137 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/1.083, allocations: 0 / 1.289 GB, free: 9.137 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000583/1.084, allocations: 232.6 kB / 1.289 GB, free: 8.91 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/1.086, allocations: 407.8 kB / 1.29 GB, free: 8.52 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/1.089, allocations: 1.549 MB / 1.291 GB, free: 6.922 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006534/1.09, allocations: 1.033 MB / 1.292 GB, free: 5.855 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/1.09, allocations: 83.41 kB / 1.292 GB, free: 5.773 MB / 1.014 GB Notification: Performance of SimCode: time 6.82e-07/1.09, allocations: 0 / 1.292 GB, free: 5.773 MB / 1.014 GB Notification: Performance of Templates: time 0.04607/1.136, allocations: 36.19 MB / 1.328 GB, free: 1.844 MB / 1.045 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