Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Validation.TwoWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valOPPoi.m_flow|valKv.m_flow|valCv.m_flow|valAv.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization") translateModel(Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valOPPoi.m_flow|valKv.m_flow|valCv.m_flow|valAv.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001451, allocations: 98.11 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.01109/0.01109, allocations: 171.7 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 462.6 MB / 0.7364 GB, free: 260 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003715, allocations: 13.2 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.37, allocations: 159.6 MB / 1.059 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization): time 0.03662/0.4067, allocations: 29.87 MB / 1.088 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01452/0.4213, allocations: 10.72 MB / 1.098 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.4227, allocations: 23.81 kB / 1.098 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.4241, allocations: 314.2 kB / 1.099 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003489/0.4276, allocations: 1.053 MB / 1.1 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002432/0.4301, allocations: 0.7717 MB / 1.1 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003489/0.4336, allocations: 2.834 MB / 1.103 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.4348, allocations: 0.5577 MB / 1.104 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002238/0.437, allocations: 0.8944 MB / 1.105 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.4384, allocations: 0.6572 MB / 1.105 GB, free: 5.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.4386, allocations: 36 kB / 1.105 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.4402, allocations: 0.5692 MB / 1.106 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.4404, allocations: 135.3 kB / 1.106 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.4412, allocations: 427.3 kB / 1.106 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.443, allocations: 1.055 MB / 1.107 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.443, allocations: 0 / 1.107 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.154e-06/0.443, allocations: 0 / 1.107 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.99e-05/0.443, allocations: 0 / 1.107 GB, free: 3.391 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001933/0.445, allocations: 1.016 MB / 1.108 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.445, allocations: 8.031 kB / 1.108 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.4453, allocations: 99.81 kB / 1.108 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009361/0.4462, allocations: 0.5734 MB / 1.109 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.031e-05/0.4463, allocations: 37 kB / 1.109 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-05/0.4464, allocations: 52 kB / 1.109 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008576/0.4472, allocations: 426.4 kB / 1.11 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.4473, allocations: 3.984 kB / 1.11 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.4473, allocations: 16 kB / 1.11 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.4473, allocations: 16 kB / 1.11 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006635/0.448, allocations: 307.8 kB / 1.11 GB, free: 0.7656 MB / 0.8575 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.003084/0.4511, allocations: 1.858 MB / 1.112 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.4515, allocations: 176 kB / 1.112 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.4517, allocations: 88.81 kB / 1.112 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003241/0.452, allocations: 336.4 kB / 1.112 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.4521, allocations: 38.62 kB / 1.112 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 2.224e-06/0.4521, allocations: 7.938 kB / 1.112 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.0008218/0.4529, allocations: 317.8 kB / 1.113 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.453, allocations: 63.23 kB / 1.113 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008655/0.4538, allocations: 0.6882 MB / 1.113 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.4539, allocations: 33.7 kB / 1.113 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/0.4542, allocations: 368.7 kB / 1.114 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.4542, allocations: 63.05 kB / 1.114 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.567e-05/0.4543, allocations: 45.69 kB / 1.114 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.4545, allocations: 378.7 kB / 1.114 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.4547, allocations: 116.7 kB / 1.114 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.4551, allocations: 179.8 kB / 1.114 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004848/0.4556, allocations: 252.9 kB / 1.115 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4556, allocations: 4 kB / 1.115 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007915/0.4564, allocations: 406.2 kB / 1.115 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.319e-05/0.4565, allocations: 107 kB / 1.115 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.4565, allocations: 4 kB / 1.115 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4565, allocations: 0 / 1.115 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.4576, allocations: 167.9 kB / 1.115 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.4589, allocations: 2.363 MB / 1.118 GB, free: 8.332 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006435/0.4595, allocations: 83.84 kB / 1.118 GB, free: 8.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.4596, allocations: 19.98 kB / 1.118 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.4596, allocations: 4 kB / 1.118 GB, free: 8.227 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006217/0.4602, allocations: 295.8 kB / 1.118 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4603, allocations: 0 / 1.118 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.187e-06/0.4603, allocations: 0 / 1.118 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.4607, allocations: 99.88 kB / 1.118 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.4607, allocations: 4 kB / 1.118 GB, free: 7.836 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005795/0.4613, allocations: 92.16 kB / 1.118 GB, free: 7.746 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.4613, allocations: 19.98 kB / 1.118 GB, free: 7.727 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.4617, allocations: 261 kB / 1.119 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.4618, allocations: 67.16 kB / 1.119 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007057/0.4625, allocations: 326.5 kB / 1.119 GB, free: 7.066 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.4625, allocations: 7.938 kB / 1.119 GB, free: 7.059 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4625, allocations: 0 / 1.119 GB, free: 7.059 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.4625, allocations: 4 kB / 1.119 GB, free: 7.055 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.4639, allocations: 0.9034 MB / 1.12 GB, free: 6.082 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.464, allocations: 0 / 1.12 GB, free: 6.082 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.4643, allocations: 75.88 kB / 1.12 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.4643, allocations: 4 kB / 1.12 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.4643, allocations: 4 kB / 1.12 GB, free: 6 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4654, allocations: 2.36 MB / 1.122 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4654, allocations: 288 / 1.122 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005753/0.466, allocations: 407.6 kB / 1.123 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.4663, allocations: 184 kB / 1.123 GB, free: 2.922 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.895e-05/0.4664, allocations: 3.984 kB / 1.123 GB, free: 2.918 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.4668, allocations: 51.89 kB / 1.123 GB, free: 2.867 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.4669, allocations: 15.98 kB / 1.123 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.4669, allocations: 15.98 kB / 1.123 GB, free: 2.836 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005894/0.4675, allocations: 475 kB / 1.123 GB, free: 2.375 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4675, allocations: 4 kB / 1.123 GB, free: 2.371 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0009586/0.4685, allocations: 347.1 kB / 1.124 GB, free: 2.031 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005581/0.4691, allocations: 247 kB / 1.124 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001664/0.4707, allocations: 0.508 MB / 1.124 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4707, allocations: 4 kB / 1.124 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.4712, allocations: 143.7 kB / 1.124 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.4734, allocations: 372.6 kB / 1.125 GB, free: 0.7812 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.4756, allocations: 1.382 MB / 1.126 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.4761, allocations: 0.9448 MB / 1.127 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000518/0.4767, allocations: 117.3 kB / 1.127 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.4768, allocations: 47.44 kB / 1.127 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of SimCode: time 5.11e-07/0.4768, allocations: 0 / 1.127 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of Templates: time 0.02327/0.5001, allocations: 12.36 MB / 1.139 GB, free: 2.078 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches