Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_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_9_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.001355/0.001355, allocations: 114 kB / 16.42 MB, free: 6.402 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.001362/0.001362, allocations: 183.9 kB / 17.35 MB, free: 5.719 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.487/1.487, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.316/2.316, allocations: 390.2 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 63.89 kB / 0.9515 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9675/0.969, allocations: 140.4 MB / 1.089 GB, free: 5.762 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03448/1.004, allocations: 29.82 MB / 1.118 GB, free: 380 kB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01653/1.02, allocations: 8.136 MB / 1.126 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/1.023, allocations: 35.91 kB / 1.126 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001942/1.025, allocations: 441.3 kB / 1.126 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00637/1.032, allocations: 1.435 MB / 1.128 GB, free: 9.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003922/1.036, allocations: 1.136 MB / 1.129 GB, free: 8.93 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005867/1.041, allocations: 3.556 MB / 1.132 GB, free: 7.496 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002949/1.044, allocations: 1.336 MB / 1.133 GB, free: 7.059 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004429/1.049, allocations: 1.705 MB / 1.135 GB, free: 6.469 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004319/1.053, allocations: 1.621 MB / 1.137 GB, free: 5.957 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001393/1.055, allocations: 126 kB / 1.137 GB, free: 5.957 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004718/1.059, allocations: 1.016 MB / 1.138 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001507/1.061, allocations: 404.8 kB / 1.138 GB, free: 5.465 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002851/1.064, allocations: 0.7539 MB / 1.139 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.006297/1.07, allocations: 2.205 MB / 1.141 GB, free: 4.34 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/1.07, allocations: 0 / 1.141 GB, free: 4.34 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.305e-06/1.07, allocations: 0 / 1.141 GB, free: 4.34 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.691e-05/1.07, allocations: 1.125 kB / 1.141 GB, free: 4.34 MB / 0.8887 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.006638/1.077, allocations: 1.67 MB / 1.143 GB, free: 3.289 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/1.077, allocations: 9.188 kB / 1.143 GB, free: 3.289 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/1.078, allocations: 152.9 kB / 1.143 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003701/1.082, allocations: 0.9263 MB / 1.144 GB, free: 2.695 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/1.082, allocations: 80.19 kB / 1.144 GB, free: 2.668 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005122/1.083, allocations: 117.3 kB / 1.144 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/1.084, allocations: 0.6348 MB / 1.145 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/1.084, allocations: 3.938 kB / 1.145 GB, free: 2.348 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/1.084, allocations: 25.28 kB / 1.145 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/1.084, allocations: 14.25 kB / 1.145 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/1.085, allocations: 472.7 kB / 1.145 GB, free: 2.176 MB / 0.8887 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.00607/1.091, allocations: 2.856 MB / 1.148 GB, free: 388 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007393/1.092, allocations: 316.4 kB / 1.148 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/1.092, allocations: 146.1 kB / 1.148 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004328/1.093, allocations: 343.2 kB / 1.149 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/1.093, allocations: 37.92 kB / 1.149 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=33): time 2.826e-06/1.093, allocations: 0 / 1.149 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33): time 0.001857/1.095, allocations: 0.5308 MB / 1.149 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/1.095, allocations: 56.19 kB / 1.149 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/1.096, allocations: 0.9023 MB / 1.15 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001916/1.096, allocations: 54.64 kB / 1.15 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005111/1.097, allocations: 489.9 kB / 1.151 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/1.097, allocations: 114.6 kB / 1.151 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004475/1.098, allocations: 288.4 kB / 1.151 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.098, allocations: 330.2 kB / 1.151 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/1.098, allocations: 194.7 kB / 1.152 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/1.1, allocations: 1.152 MB / 1.153 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009968/1.101, allocations: 461.1 kB / 1.153 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.101, allocations: 1.125 kB / 1.153 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001574/1.103, allocations: 0.6507 MB / 1.154 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.103, allocations: 9.062 kB / 1.154 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/1.103, allocations: 2.438 kB / 1.154 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/1.103, allocations: 4.844 kB / 1.154 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/1.104, allocations: 244.3 kB / 1.154 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/1.106, allocations: 2.957 MB / 1.157 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/1.11, allocations: 0.6904 MB / 1.158 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-05/1.11, allocations: 30.7 kB / 1.158 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008721/1.111, allocations: 369.8 kB / 1.158 GB, free: 8.871 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001439/1.112, allocations: 1.167 MB / 1.159 GB, free: 7.605 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008492/1.113, allocations: 451.1 kB / 1.159 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/1.113, allocations: 0.9688 kB / 1.159 GB, free: 7.328 MB / 0.9044 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001697/1.115, allocations: 0.6579 MB / 1.16 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/1.115, allocations: 6.219 kB / 1.16 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.115, allocations: 3.312 kB / 1.16 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/1.115, allocations: 5.719 kB / 1.16 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/1.116, allocations: 171.2 kB / 1.16 GB, free: 6.969 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/1.116, allocations: 5.094 kB / 1.16 GB, free: 6.969 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004831/1.12, allocations: 0.9652 MB / 1.161 GB, free: 6.547 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-05/1.12, allocations: 22.78 kB / 1.161 GB, free: 6.543 MB / 0.9044 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.0004353/1.121, allocations: 242.1 kB / 1.161 GB, free: 6.328 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/1.121, allocations: 99.05 kB / 1.162 GB, free: 6.273 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/1.122, allocations: 0.5013 MB / 1.162 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/1.122, allocations: 5.047 kB / 1.162 GB, free: 5.984 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/1.122, allocations: 0 / 1.162 GB, free: 5.984 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004431/1.123, allocations: 213.3 kB / 1.162 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/1.123, allocations: 13.09 kB / 1.162 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005446/1.124, allocations: 29.14 kB / 1.162 GB, free: 5.762 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.374e-05/1.124, allocations: 28.14 kB / 1.162 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001259/1.125, allocations: 0.5402 MB / 1.163 GB, free: 5.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001322/1.126, allocations: 0.8214 MB / 1.164 GB, free: 4.883 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003819/1.127, allocations: 169 kB / 1.164 GB, free: 4.801 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0012/1.128, allocations: 0.606 MB / 1.164 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of Backend: time 6.31e-07/1.128, allocations: 0 / 1.164 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004224/1.132, allocations: 1.026 MB / 1.165 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of SimCode: time 0.004099/1.136, allocations: 2.224 MB / 1.168 GB, free: 2.484 MB / 0.9044 GB Notification: Performance of Templates: time 0.05215/1.189, allocations: 26.94 MB / 1.194 GB, free: 1.465 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches