Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_10_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_10_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.001615/0.001615, allocations: 118.1 kB / 16.42 MB, free: 6.012 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.00183/0.00183, allocations: 183.4 kB / 17.35 MB, free: 5.629 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.505/1.505, 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 10.1.1-maint.10.0.x/package.mo): time 2.586/2.586, allocations: 437 MB / 0.7112 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 59.89 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.108/1.109, allocations: 151.6 MB / 1.167 GB, free: 3.887 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.05661/1.166, allocations: 29.83 MB / 1.196 GB, free: 5.949 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02001/1.186, allocations: 8.141 MB / 1.204 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002613/1.189, allocations: 31.75 kB / 1.204 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002543/1.191, allocations: 436.9 kB / 1.205 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.008221/1.2, allocations: 1.433 MB / 1.206 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.005809/1.205, allocations: 1.146 MB / 1.207 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.007192/1.213, allocations: 3.549 MB / 1.211 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003522/1.216, allocations: 1.337 MB / 1.212 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005626/1.222, allocations: 1.695 MB / 1.214 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005477/1.227, allocations: 1.628 MB / 1.215 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.001095/1.228, allocations: 128 kB / 1.215 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003842/1.232, allocations: 1.01 MB / 1.216 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.001137/1.233, allocations: 406.7 kB / 1.217 GB, free: 0.9766 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.002399/1.236, allocations: 0.7428 MB / 1.218 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.004564/1.24, allocations: 2.207 MB / 1.22 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.241, allocations: 4 kB / 1.22 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.893e-06/1.241, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.625e-05/1.241, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9512 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.004389/1.245, allocations: 1.671 MB / 1.221 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/1.245, allocations: 8.031 kB / 1.221 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000417/1.246, allocations: 151.4 kB / 1.222 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/1.248, allocations: 0.9298 MB / 1.222 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.161e-05/1.248, allocations: 81.31 kB / 1.223 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/1.248, allocations: 120 kB / 1.223 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/1.249, allocations: 0.6317 MB / 1.223 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/1.249, allocations: 0 / 1.223 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/1.249, allocations: 28 kB / 1.223 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/1.249, allocations: 16 kB / 1.223 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008821/1.25, allocations: 468.8 kB / 1.224 GB, free: 9.793 MB / 0.9512 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.0046/1.255, allocations: 2.856 MB / 1.227 GB, free: 6.781 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/1.255, allocations: 311.2 kB / 1.227 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/1.256, allocations: 149.3 kB / 1.227 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003332/1.256, allocations: 348.7 kB / 1.227 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/1.256, allocations: 30.84 kB / 1.227 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=33): time 2.524e-06/1.256, allocations: 4 kB / 1.227 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33): time 0.001299/1.257, allocations: 0.5327 MB / 1.228 GB, free: 5.324 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/1.257, allocations: 55.41 kB / 1.228 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009953/1.258, allocations: 0.9075 MB / 1.229 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001309/1.259, allocations: 57.7 kB / 1.229 GB, free: 4.27 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/1.259, allocations: 490.6 kB / 1.229 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.597e-05/1.259, allocations: 114.4 kB / 1.229 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003787/1.259, allocations: 294.9 kB / 1.23 GB, free: 3.375 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001251/1.26, allocations: 326.1 kB / 1.23 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/1.26, allocations: 193.3 kB / 1.23 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/1.261, allocations: 1.155 MB / 1.231 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007809/1.262, allocations: 459.4 kB / 1.232 GB, free: 0.8711 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.262, allocations: 4 kB / 1.232 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001263/1.263, allocations: 0.6462 MB / 1.232 GB, free: 216 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/1.263, allocations: 8 kB / 1.232 GB, free: 208 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.263, allocations: 0 / 1.232 GB, free: 208 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/1.263, allocations: 7.984 kB / 1.232 GB, free: 200 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/1.265, allocations: 243.9 kB / 1.233 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/1.266, allocations: 2.95 MB / 1.236 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003324/1.27, allocations: 0.6989 MB / 1.236 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.905e-05/1.27, allocations: 31.98 kB / 1.236 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007347/1.271, allocations: 369.3 kB / 1.237 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001264/1.272, allocations: 1.162 MB / 1.238 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007376/1.273, allocations: 452.9 kB / 1.238 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.555e-06/1.273, allocations: 0 / 1.238 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001356/1.274, allocations: 0.659 MB / 1.239 GB, free: 9.113 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/1.274, allocations: 8 kB / 1.239 GB, free: 9.105 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/1.274, allocations: 4.188 kB / 1.239 GB, free: 9.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-06/1.274, allocations: 8 kB / 1.239 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000673/1.275, allocations: 151.8 kB / 1.239 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/1.275, allocations: 8 kB / 1.239 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/1.279, allocations: 0.9691 MB / 1.24 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.888e-05/1.279, allocations: 24 kB / 1.24 GB, free: 7.941 MB / 0.9669 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.0003437/1.28, allocations: 245 kB / 1.24 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/1.28, allocations: 102.7 kB / 1.24 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/1.281, allocations: 0.501 MB / 1.241 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/1.281, allocations: 4 kB / 1.241 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/1.281, allocations: 0 / 1.241 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/1.281, allocations: 211.7 kB / 1.241 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/1.281, allocations: 8 kB / 1.241 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004284/1.282, allocations: 27.95 kB / 1.241 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/1.282, allocations: 28.23 kB / 1.241 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001246/1.283, allocations: 0.5486 MB / 1.242 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001246/1.284, allocations: 0.8191 MB / 1.242 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003241/1.285, allocations: 172.9 kB / 1.243 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0007293/1.285, allocations: 0.6084 MB / 1.243 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of Backend: time 6.71e-07/1.285, allocations: 0 / 1.243 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003434/1.289, allocations: 1.037 MB / 1.244 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of SimCode: time 0.003245/1.292, allocations: 2.213 MB / 1.246 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of Templates: time 0.04085/1.333, allocations: 26.94 MB / 1.273 GB, free: 6.812 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches