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.0008357/0.0008356, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 181.6 kB / 16.92 MB, free: 6.891 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.473/1.473, allocations: 223.3 MB / 241 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.831/2.831, allocations: 462.6 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003458, allocations: 10.41 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3622, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.02258/0.3849, allocations: 18.77 MB / 1.078 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007841/0.3928, allocations: 5.121 MB / 1.083 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000956/0.3938, allocations: 19.88 kB / 1.083 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008071/0.3946, allocations: 210.7 kB / 1.083 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.3967, allocations: 0.7074 MB / 1.084 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.3988, allocations: 0.8016 MB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002118/0.4009, allocations: 1.935 MB / 1.086 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006175/0.4016, allocations: 429 kB / 1.087 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009847/0.4026, allocations: 0.5679 MB / 1.087 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006205/0.4032, allocations: 0.5133 MB / 1.088 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.4033, allocations: 28 kB / 1.088 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.4044, allocations: 0.6549 MB / 1.088 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.4046, allocations: 135.3 kB / 1.088 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003315/0.4049, allocations: 375.7 kB / 1.089 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000855/0.4058, allocations: 0.7637 MB / 1.09 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4058, allocations: 4 kB / 1.09 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4058, allocations: 0 / 1.09 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.375e-06/0.4058, allocations: 0 / 1.09 GB, free: 5.848 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.001758/0.4076, allocations: 0.9813 MB / 1.091 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4076, allocations: 15.97 kB / 1.091 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.4078, allocations: 83.91 kB / 1.091 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.4084, allocations: 0.4992 MB / 1.091 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.4085, allocations: 40.98 kB / 1.091 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.4086, allocations: 51.94 kB / 1.091 GB, free: 4.086 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.4096, allocations: 0.6411 MB / 1.092 GB, free: 3.379 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.4096, allocations: 7.875 kB / 1.092 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.576e-05/0.4097, allocations: 20 kB / 1.092 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.4097, allocations: 16 kB / 1.092 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.4108, allocations: 0.5151 MB / 1.092 GB, free: 2.82 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.003211/0.414, allocations: 3.201 MB / 1.096 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.4147, allocations: 356.5 kB / 1.096 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.4152, allocations: 244.8 kB / 1.096 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003572/0.4156, allocations: 348.4 kB / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.4156, allocations: 46.59 kB / 1.096 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=38): time 2.124e-06/0.4156, allocations: 0 / 1.096 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=38): time 0.002167/0.4178, allocations: 0.8589 MB / 1.097 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.4179, allocations: 55.41 kB / 1.097 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006461/0.4185, allocations: 0.59 MB / 1.098 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.4186, allocations: 37.7 kB / 1.098 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.4188, allocations: 328.4 kB / 1.098 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4189, allocations: 134.1 kB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.419, allocations: 61.69 kB / 1.098 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4192, allocations: 366.8 kB / 1.099 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.4197, allocations: 229.2 kB / 1.099 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.4203, allocations: 392 kB / 1.099 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.4214, allocations: 0.6055 MB / 1.1 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4214, allocations: 0 / 1.1 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001545/0.4229, allocations: 0.7457 MB / 1.101 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.4231, allocations: 219.6 kB / 1.101 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4231, allocations: 4 kB / 1.101 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006976/0.4238, allocations: 168.8 kB / 1.101 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.4244, allocations: 143.7 kB / 1.101 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005778/0.425, allocations: 0.6264 MB / 1.102 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000669/0.4256, allocations: 99.31 kB / 1.102 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.4257, allocations: 32.06 kB / 1.102 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.4257, allocations: 4 kB / 1.102 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/0.427, allocations: 0.6271 MB / 1.103 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.427, allocations: 4 kB / 1.103 GB, free: 7.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.4271, allocations: 11.94 kB / 1.103 GB, free: 7.762 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.4277, allocations: 163.8 kB / 1.103 GB, free: 7.602 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.4277, allocations: 11.94 kB / 1.103 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000566/0.4282, allocations: 91.58 kB / 1.103 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.4283, allocations: 31.98 kB / 1.103 GB, free: 7.469 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 (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.0003472/0.4287, allocations: 272.9 kB / 1.103 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.4288, allocations: 67.23 kB / 1.103 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.4303, allocations: 0.6654 MB / 1.104 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4303, allocations: 4 kB / 1.104 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4303, allocations: 4 kB / 1.104 GB, free: 6.438 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.4303, allocations: 4 kB / 1.104 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.4328, allocations: 1.406 MB / 1.105 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4328, allocations: 0 / 1.105 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.4332, allocations: 87.88 kB / 1.105 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.4337, allocations: 133 kB / 1.105 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.4337, allocations: 19.92 kB / 1.105 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006095/0.4343, allocations: 0.6343 MB / 1.106 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4343, allocations: 3.938 kB / 1.106 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.4357, allocations: 0.7241 MB / 1.107 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.436, allocations: 215.9 kB / 1.107 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.663e-05/0.4361, allocations: 12 kB / 1.107 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004861/0.4366, allocations: 55.84 kB / 1.107 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.772e-05/0.4367, allocations: 31.95 kB / 1.107 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.4368, allocations: 16 kB / 1.107 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005019/0.4373, allocations: 403.1 kB / 1.108 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.944e-06/0.4373, allocations: 0 / 1.108 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001249/0.4385, allocations: 387.4 kB / 1.108 GB, free: 2.191 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 (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.0007849/0.4393, allocations: 307.4 kB / 1.108 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002112/0.4414, allocations: 0.9136 MB / 1.109 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4415, allocations: 0 / 1.109 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000724/0.4422, allocations: 304.2 kB / 1.109 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.4439, allocations: 261.1 kB / 1.11 GB, free: 440 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.4461, allocations: 1.373 MB / 1.111 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.4466, allocations: 0.908 MB / 1.112 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.4468, allocations: 67.42 kB / 1.112 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of SimCode: time 7.72e-07/0.4468, allocations: 0 / 1.112 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of Templates: time 0.02023/0.4671, allocations: 12.93 MB / 1.125 GB, free: 1.168 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/jenkins1/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