Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 109.7 kB / 16.41 MB, free: 6.457 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.001816/0.001816, allocations: 189.7 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.369/1.369, 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 10.1.1-maint.10.0.x/package.mo): time 2.457/2.457, allocations: 437.1 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 63.91 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.004/1.006, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.02537/1.031, allocations: 19.44 MB / 1.186 GB, free: 368 kB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.008885/1.04, allocations: 5.145 MB / 1.191 GB, free: 11.2 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/1.041, allocations: 19.88 kB / 1.191 GB, free: 11.18 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/1.043, allocations: 274 kB / 1.192 GB, free: 10.91 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002875/1.045, allocations: 0.8094 MB / 1.192 GB, free: 10.09 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002701/1.048, allocations: 0.8855 MB / 1.193 GB, free: 9.215 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002533/1.051, allocations: 1.549 MB / 1.195 GB, free: 7.66 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/1.052, allocations: 0.513 MB / 1.195 GB, free: 7.137 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/1.053, allocations: 0.6382 MB / 1.196 GB, free: 6.496 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/1.054, allocations: 0.5329 MB / 1.196 GB, free: 5.961 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0002169/1.055, allocations: 56 kB / 1.196 GB, free: 5.906 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/1.056, allocations: 0.6979 MB / 1.197 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0002831/1.057, allocations: 171.3 kB / 1.197 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0007307/1.058, allocations: 382 kB / 1.198 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002126/1.06, allocations: 1.088 MB / 1.199 GB, free: 3.574 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.06, allocations: 4 kB / 1.199 GB, free: 3.57 MB / 0.92 GB Notification: Performance of FrontEnd: time 5.119e-06/1.06, allocations: 0 / 1.199 GB, free: 3.57 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.52e-05/1.06, allocations: 3.938 kB / 1.199 GB, free: 3.566 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002654/1.062, allocations: 1.094 MB / 1.2 GB, free: 2.422 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/1.062, allocations: 8.922 kB / 1.2 GB, free: 2.414 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/1.063, allocations: 83.91 kB / 1.2 GB, free: 2.332 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/1.064, allocations: 0.5265 MB / 1.2 GB, free: 1.766 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/1.064, allocations: 37 kB / 1.2 GB, free: 1.73 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/1.064, allocations: 52 kB / 1.2 GB, free: 1.68 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/1.065, allocations: 0.6216 MB / 1.201 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/1.065, allocations: 3.938 kB / 1.201 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.058e-05/1.065, allocations: 20 kB / 1.201 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/1.065, allocations: 12 kB / 1.201 GB, free: 0.957 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/1.066, allocations: 491.4 kB / 1.202 GB, free: 492 kB / 0.92 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.004146/1.071, allocations: 3.189 MB / 1.205 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007827/1.071, allocations: 347.1 kB / 1.205 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005502/1.072, allocations: 234.3 kB / 1.205 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000382/1.072, allocations: 348.4 kB / 1.206 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.072, allocations: 42.5 kB / 1.206 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=38): time 2.474e-06/1.072, allocations: 0 / 1.206 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=38): time 0.0024/1.075, allocations: 0.8102 MB / 1.206 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/1.075, allocations: 55.41 kB / 1.206 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/1.076, allocations: 0.5901 MB / 1.207 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/1.076, allocations: 29.7 kB / 1.207 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000263/1.076, allocations: 336.4 kB / 1.207 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/1.076, allocations: 134 kB / 1.208 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/1.076, allocations: 130.2 kB / 1.208 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002529/1.077, allocations: 370.8 kB / 1.208 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005219/1.077, allocations: 219.4 kB / 1.208 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006185/1.078, allocations: 372 kB / 1.209 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/1.079, allocations: 0.5742 MB / 1.209 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/1.079, allocations: 4 kB / 1.209 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001658/1.081, allocations: 0.7183 MB / 1.21 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/1.081, allocations: 8 kB / 1.21 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/1.081, allocations: 4 kB / 1.21 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006388/1.081, allocations: 137.1 kB / 1.21 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005824/1.082, allocations: 139.8 kB / 1.21 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006935/1.083, allocations: 0.6148 MB / 1.211 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/1.083, allocations: 87.31 kB / 1.211 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.267e-05/1.084, allocations: 31.98 kB / 1.211 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006972/1.084, allocations: 349.3 kB / 1.211 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006142/1.085, allocations: 360 kB / 1.212 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001234/1.086, allocations: 0.5588 MB / 1.212 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.102e-06/1.086, allocations: 4 kB / 1.212 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001559/1.088, allocations: 0.6708 MB / 1.213 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/1.088, allocations: 8.562 kB / 1.213 GB, free: 4.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.088, allocations: 4 kB / 1.213 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/1.088, allocations: 16.05 kB / 1.213 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000717/1.088, allocations: 159.8 kB / 1.213 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/1.088, allocations: 11.94 kB / 1.213 GB, free: 4.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/1.089, allocations: 71.48 kB / 1.213 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.858e-05/1.089, allocations: 27.98 kB / 1.213 GB, free: 4.133 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002763/1.089, allocations: 220.1 kB / 1.213 GB, free: 3.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/1.09, allocations: 59.25 kB / 1.213 GB, free: 3.852 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/1.091, allocations: 0.6433 MB / 1.214 GB, free: 3.207 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/1.091, allocations: 4 kB / 1.214 GB, free: 3.203 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/1.091, allocations: 3.938 kB / 1.214 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/1.091, allocations: 3.984 kB / 1.214 GB, free: 3.195 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/1.094, allocations: 1.371 MB / 1.215 GB, free: 1.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.094, allocations: 0 / 1.215 GB, free: 1.754 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/1.095, allocations: 83.88 kB / 1.215 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003588/1.095, allocations: 104.8 kB / 1.215 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.246e-05/1.095, allocations: 11.98 kB / 1.215 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006575/1.096, allocations: 0.6342 MB / 1.216 GB, free: 0.8945 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.096, allocations: 0 / 1.216 GB, free: 0.8945 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/1.097, allocations: 0.7019 MB / 1.217 GB, free: 164 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003734/1.097, allocations: 196.2 kB / 1.217 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/1.098, allocations: 11.98 kB / 1.217 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/1.098, allocations: 35.97 kB / 1.217 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/1.098, allocations: 27.95 kB / 1.217 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/1.098, allocations: 20 kB / 1.217 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005327/1.099, allocations: 403 kB / 1.217 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.51e-07/1.099, allocations: 0 / 1.217 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001286/1.1, allocations: 379.3 kB / 1.218 GB, free: 15.09 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008126/1.101, allocations: 319.1 kB / 1.218 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002163/1.103, allocations: 0.8706 MB / 1.219 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/1.103, allocations: 4 kB / 1.219 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007286/1.104, allocations: 271.7 kB / 1.219 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/1.105, allocations: 236.8 kB / 1.219 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/1.107, allocations: 1.094 MB / 1.22 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/1.108, allocations: 0.9077 MB / 1.221 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/1.108, allocations: 63.42 kB / 1.221 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of SimCode: time 5.91e-07/1.108, allocations: 0 / 1.221 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of Templates: time 0.01974/1.128, allocations: 12.92 MB / 1.234 GB, free: 14.46 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches