Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_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_latest_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.0008633/0.0008634, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008663/0.0008662, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.893/2.893, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003942, allocations: 11.59 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3848, allocations: 159.6 MB / 1.058 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.02461/0.4096, allocations: 17.79 MB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007863/0.4175, allocations: 4.853 MB / 1.08 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.4186, allocations: 15.88 kB / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008116/0.4194, allocations: 190.7 kB / 1.08 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.4215, allocations: 0.6209 MB / 1.081 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002147/0.4237, allocations: 0.7403 MB / 1.082 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002202/0.4259, allocations: 1.681 MB / 1.083 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006496/0.4265, allocations: 407.2 kB / 1.084 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.4276, allocations: 0.5407 MB / 1.084 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006828/0.4283, allocations: 0.4901 MB / 1.085 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.948e-05/0.4283, allocations: 28 kB / 1.085 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.4296, allocations: 0.5964 MB / 1.085 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.4298, allocations: 131.4 kB / 1.085 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.43, allocations: 157.3 kB / 1.086 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009452/0.4309, allocations: 0.7368 MB / 1.086 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.431, allocations: 0 / 1.086 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.346e-06/0.431, allocations: 0 / 1.086 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.668e-05/0.431, allocations: 0 / 1.086 GB, free: 8.309 MB / 0.8419 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.001994/0.433, allocations: 1.005 MB / 1.087 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.433, allocations: 8.031 kB / 1.087 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.4332, allocations: 86.92 kB / 1.087 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007597/0.434, allocations: 486.6 kB / 1.088 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.434, allocations: 40.98 kB / 1.088 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.4341, allocations: 44 kB / 1.088 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.4352, allocations: 0.6333 MB / 1.089 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.4353, allocations: 3.938 kB / 1.089 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.4353, allocations: 24 kB / 1.089 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.4353, allocations: 19.89 kB / 1.089 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.4363, allocations: 0.5073 MB / 1.089 GB, free: 5.305 MB / 0.8419 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.003524/0.4399, allocations: 3.209 MB / 1.092 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.4406, allocations: 351 kB / 1.093 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/0.441, allocations: 240.7 kB / 1.093 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003907/0.4414, allocations: 352.4 kB / 1.093 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.4415, allocations: 38.56 kB / 1.093 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=38): time 2.474e-06/0.4415, allocations: 0 / 1.093 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of matching and sorting (n=38): time 0.002081/0.4436, allocations: 0.8699 MB / 1.094 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.4436, allocations: 55.41 kB / 1.094 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006561/0.4443, allocations: 0.5823 MB / 1.095 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.4444, allocations: 29.7 kB / 1.095 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.4446, allocations: 332.3 kB / 1.095 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.4447, allocations: 134.1 kB / 1.095 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.4448, allocations: 16 kB / 1.095 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.445, allocations: 370.7 kB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/0.4454, allocations: 221.2 kB / 1.096 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005894/0.446, allocations: 376 kB / 1.096 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.4466, allocations: 256.7 kB / 1.096 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4466, allocations: 0 / 1.096 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001396/0.448, allocations: 0.7227 MB / 1.097 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.4481, allocations: 223.1 kB / 1.097 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4482, allocations: 8 kB / 1.097 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006112/0.4488, allocations: 148.7 kB / 1.097 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006478/0.4494, allocations: 155.7 kB / 1.097 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006453/0.4501, allocations: 0.6304 MB / 1.098 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.4507, allocations: 111.2 kB / 1.098 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/0.4508, allocations: 31.98 kB / 1.098 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.354e-06/0.4508, allocations: 4 kB / 1.098 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001216/0.452, allocations: 0.6268 MB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.452, allocations: 4.562 kB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.4521, allocations: 15.98 kB / 1.099 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.4526, allocations: 155.8 kB / 1.099 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.4527, allocations: 8 kB / 1.099 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.4532, allocations: 95.42 kB / 1.099 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/0.4532, allocations: 35.98 kB / 1.099 GB, free: 10.45 MB / 0.8575 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003493/0.4536, allocations: 264.9 kB / 1.099 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.4537, allocations: 63.16 kB / 1.099 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.4552, allocations: 0.6765 MB / 1.1 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.4552, allocations: 4 kB / 1.1 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4552, allocations: 0 / 1.1 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4552, allocations: 11.94 kB / 1.1 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.4576, allocations: 1.402 MB / 1.102 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4576, allocations: 0 / 1.102 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.458, allocations: 87.88 kB / 1.102 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003862/0.4584, allocations: 128.9 kB / 1.102 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.4584, allocations: 11.98 kB / 1.102 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006268/0.4591, allocations: 0.6421 MB / 1.102 GB, free: 7.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4591, allocations: 3.953 kB / 1.102 GB, free: 7.039 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.4603, allocations: 0.7241 MB / 1.103 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.4606, allocations: 204.1 kB / 1.103 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.4607, allocations: 19.94 kB / 1.103 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/0.4611, allocations: 51.86 kB / 1.103 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.4612, allocations: 31.95 kB / 1.103 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.4612, allocations: 23.98 kB / 1.103 GB, free: 5.941 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004578/0.4617, allocations: 399.1 kB / 1.104 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4617, allocations: 0 / 1.104 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001155/0.4629, allocations: 383.5 kB / 1.104 GB, free: 5.184 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006538/0.4635, allocations: 297.1 kB / 1.104 GB, free: 4.895 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001955/0.4655, allocations: 0.9221 MB / 1.105 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4655, allocations: 0 / 1.105 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006636/0.4662, allocations: 300.3 kB / 1.106 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.4675, allocations: 261 kB / 1.106 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.4695, allocations: 1.303 MB / 1.107 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.47, allocations: 0.9119 MB / 1.108 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0006098/0.4707, allocations: 159.2 kB / 1.108 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.4708, allocations: 63.41 kB / 1.108 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of SimCode: time 5.21e-07/0.4708, allocations: 0 / 1.108 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of Templates: time 0.0222/0.493, allocations: 11.75 MB / 1.12 GB, free: 5.348 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches