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.00106/0.001061, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.00769/0.00769, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.494/1.494, allocations: 223.3 MB / 240.3 MB, free: 5.309 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.819/2.819, allocations: 443.3 MB / 0.7175 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004127/0.0004123, allocations: 9.156 kB / 0.8796 GB, free: 41.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3636, allocations: 155.2 MB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01841/0.3821, allocations: 18.77 MB / 1.049 GB, free: 1.418 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007975/0.3901, allocations: 5.118 MB / 1.054 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.3912, allocations: 19.81 kB / 1.054 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.3923, allocations: 210.7 kB / 1.055 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.395, allocations: 0.7021 MB / 1.055 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002509/0.3975, allocations: 0.7952 MB / 1.056 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.002563/0.4001, allocations: 1.931 MB / 1.058 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009278/0.401, allocations: 437 kB / 1.058 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.4024, allocations: 0.5756 MB / 1.059 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009243/0.4033, allocations: 0.5094 MB / 1.059 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.4035, allocations: 28 kB / 1.059 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.405, allocations: 0.6587 MB / 1.06 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.4052, allocations: 135.4 kB / 1.06 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.4058, allocations: 379.6 kB / 1.061 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.4077, allocations: 1.039 MB / 1.062 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4077, allocations: 0 / 1.062 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4077, allocations: 0 / 1.062 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.856e-05/0.4077, allocations: 0 / 1.062 GB, free: 4.863 MB / 0.8106 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.002225/0.41, allocations: 0.993 MB / 1.063 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.41, allocations: 8.031 kB / 1.063 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.4103, allocations: 87.91 kB / 1.063 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008662/0.4112, allocations: 0.4992 MB / 1.063 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.4112, allocations: 37 kB / 1.063 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.176e-05/0.4113, allocations: 48 kB / 1.063 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.4125, allocations: 0.6372 MB / 1.064 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.4125, allocations: 4 kB / 1.064 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.552e-05/0.4126, allocations: 24 kB / 1.064 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.4126, allocations: 15.94 kB / 1.064 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.4138, allocations: 0.5112 MB / 1.064 GB, free: 1.844 MB / 0.8106 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.00374/0.4175, allocations: 3.212 MB / 1.068 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007323/0.4183, allocations: 360.2 kB / 1.068 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005009/0.4188, allocations: 240.8 kB / 1.068 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003628/0.4192, allocations: 348.4 kB / 1.068 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.4192, allocations: 38.56 kB / 1.069 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=38): time 1.894e-06/0.4192, allocations: 0 / 1.069 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38): time 0.002314/0.4216, allocations: 0.8727 MB / 1.069 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.4216, allocations: 59.34 kB / 1.069 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.4223, allocations: 0.5861 MB / 1.07 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.803e-05/0.4224, allocations: 33.7 kB / 1.07 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.4226, allocations: 332.4 kB / 1.07 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.4227, allocations: 134.1 kB / 1.07 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.4228, allocations: 57.67 kB / 1.071 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.423, allocations: 370.8 kB / 1.071 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.4235, allocations: 229.2 kB / 1.071 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006122/0.4241, allocations: 384 kB / 1.071 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.4253, allocations: 0.6016 MB / 1.072 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4253, allocations: 0 / 1.072 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001531/0.4268, allocations: 0.7418 MB / 1.073 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.427, allocations: 219.6 kB / 1.073 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.427, allocations: 15.98 kB / 1.073 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006625/0.4277, allocations: 156.8 kB / 1.073 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/0.4282, allocations: 139.8 kB / 1.073 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005702/0.4288, allocations: 0.6303 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.4295, allocations: 107.3 kB / 1.074 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.739e-05/0.4296, allocations: 31.98 kB / 1.074 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.4296, allocations: 4 kB / 1.074 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/0.4309, allocations: 0.6191 MB / 1.075 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.431, allocations: 8 kB / 1.075 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.431, allocations: 4 kB / 1.075 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.4316, allocations: 168.1 kB / 1.075 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4316, allocations: 12.06 kB / 1.075 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006195/0.4322, allocations: 95.47 kB / 1.075 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.4323, allocations: 32 kB / 1.075 GB, free: 6.477 MB / 0.8262 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.000319/0.4326, allocations: 274.9 kB / 1.075 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.4327, allocations: 63.16 kB / 1.075 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.4343, allocations: 0.6738 MB / 1.076 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.4343, allocations: 15.94 kB / 1.076 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4344, allocations: 0 / 1.076 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4344, allocations: 0 / 1.076 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.437, allocations: 1.41 MB / 1.077 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.437, allocations: 0 / 1.077 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.4374, allocations: 95.97 kB / 1.077 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004376/0.4379, allocations: 128.8 kB / 1.078 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.4379, allocations: 15.98 kB / 1.078 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006086/0.4385, allocations: 0.6343 MB / 1.078 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4385, allocations: 3.938 kB / 1.078 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.4399, allocations: 0.7281 MB / 1.079 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.4402, allocations: 204 kB / 1.079 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.4403, allocations: 12 kB / 1.079 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.4408, allocations: 55.94 kB / 1.079 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/0.4409, allocations: 31.89 kB / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.441, allocations: 20 kB / 1.079 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004772/0.4415, allocations: 407 kB / 1.08 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4415, allocations: 0 / 1.08 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001254/0.4427, allocations: 391.3 kB / 1.08 GB, free: 1.188 MB / 0.8262 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.0007079/0.4434, allocations: 302.8 kB / 1.08 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00217/0.4456, allocations: 0.9097 MB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4456, allocations: 0 / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007165/0.4464, allocations: 303.8 kB / 1.081 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.448, allocations: 274.5 kB / 1.082 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.4502, allocations: 1.339 MB / 1.083 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.4507, allocations: 0.9119 MB / 1.084 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006189/0.4514, allocations: 152.7 kB / 1.084 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.4516, allocations: 63.41 kB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.4516, allocations: 0 / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of Templates: time 0.02191/0.4735, allocations: 12.22 MB / 1.096 GB, free: 0.8516 MB / 0.8419 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