Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007058/0.007058, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001222/0.001222, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 63.25 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3722, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.0221/0.3944, allocations: 15.54 MB / 1.103 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.007465/0.4019, allocations: 4.338 MB / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008584/0.4028, allocations: 15.88 kB / 1.107 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.4042, allocations: 262.3 kB / 1.108 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.4067, allocations: 0.5985 MB / 1.108 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.409, allocations: 0.7263 MB / 1.109 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001846/0.4109, allocations: 1.025 MB / 1.11 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006589/0.4115, allocations: 339.7 kB / 1.11 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008929/0.4124, allocations: 426.3 kB / 1.111 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004853/0.4129, allocations: 326.6 kB / 1.111 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.413, allocations: 28 kB / 1.111 GB, free: 9.82 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.4146, allocations: 0.6317 MB / 1.112 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.4148, allocations: 107.5 kB / 1.112 GB, free: 9.082 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002807/0.415, allocations: 226.7 kB / 1.112 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.4164, allocations: 0.7595 MB / 1.113 GB, free: 8.098 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.4164, allocations: 0 / 1.113 GB, free: 8.098 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4164, allocations: 3.938 kB / 1.113 GB, free: 8.094 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.4164, allocations: 0 / 1.113 GB, free: 8.094 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001398/0.4179, allocations: 0.8214 MB / 1.113 GB, free: 7.223 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4179, allocations: 8.031 kB / 1.113 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.418, allocations: 56.28 kB / 1.114 GB, free: 7.16 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006627/0.4187, allocations: 445.2 kB / 1.114 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.4187, allocations: 20.44 kB / 1.114 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.4188, allocations: 28 kB / 1.114 GB, free: 6.637 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.4192, allocations: 207.2 kB / 1.114 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.4192, allocations: 4 kB / 1.114 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.4193, allocations: 15.94 kB / 1.114 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.4193, allocations: 4 kB / 1.114 GB, free: 6.406 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003706/0.4197, allocations: 165.6 kB / 1.114 GB, free: 6.246 MB / 0.8731 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.001806/0.4215, allocations: 0.9418 MB / 1.115 GB, free: 5.223 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.4218, allocations: 137.8 kB / 1.115 GB, free: 5.082 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.422, allocations: 68.81 kB / 1.115 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003333/0.4223, allocations: 332.4 kB / 1.116 GB, free: 4.613 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.4224, allocations: 34.56 kB / 1.116 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.4224, allocations: 0 / 1.116 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006361/0.423, allocations: 249 kB / 1.116 GB, free: 4.32 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.4231, allocations: 51.41 kB / 1.116 GB, free: 4.258 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/0.4236, allocations: 478 kB / 1.117 GB, free: 3.781 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.4237, allocations: 33.7 kB / 1.117 GB, free: 3.742 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.4239, allocations: 224.6 kB / 1.117 GB, free: 3.52 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.424, allocations: 47.3 kB / 1.117 GB, free: 3.473 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.4241, allocations: 61.69 kB / 1.117 GB, free: 3.406 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002686/0.4244, allocations: 354.7 kB / 1.117 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.4246, allocations: 72.81 kB / 1.117 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002693/0.4249, allocations: 156.9 kB / 1.117 GB, free: 2.797 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.4252, allocations: 176 kB / 1.118 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4253, allocations: 0 / 1.118 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005152/0.4258, allocations: 251.2 kB / 1.118 GB, free: 2.367 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4258, allocations: 8 kB / 1.118 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4258, allocations: 0 / 1.118 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.4259, allocations: 0 / 1.118 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.4261, allocations: 55.84 kB / 1.118 GB, free: 2.305 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.4261, allocations: 4 kB / 1.118 GB, free: 2.301 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.4264, allocations: 31.81 kB / 1.118 GB, free: 2.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.4265, allocations: 12 kB / 1.118 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002946/0.4268, allocations: 188.1 kB / 1.118 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002488/0.427, allocations: 170.5 kB / 1.118 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003535/0.4274, allocations: 164.1 kB / 1.118 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.723e-06/0.4274, allocations: 4 kB / 1.118 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0006214/0.4281, allocations: 248.8 kB / 1.119 GB, free: 1.445 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.4281, allocations: 8 kB / 1.119 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-06/0.4281, allocations: 0 / 1.119 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/0.4281, allocations: 4 kB / 1.119 GB, free: 1.434 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.4283, allocations: 47.91 kB / 1.119 GB, free: 1.387 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.4283, allocations: 4 kB / 1.119 GB, free: 1.383 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.4286, allocations: 44.06 kB / 1.119 GB, free: 1.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.4287, allocations: 7.984 kB / 1.119 GB, free: 1.332 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.4288, allocations: 204.6 kB / 1.119 GB, free: 1.125 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-05/0.4289, allocations: 39.53 kB / 1.119 GB, free: 1.086 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006204/0.4295, allocations: 256.3 kB / 1.119 GB, free: 0.832 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.4296, allocations: 7.984 kB / 1.119 GB, free: 0.8242 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.4296, allocations: 0 / 1.119 GB, free: 0.8242 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4296, allocations: 0 / 1.119 GB, free: 0.8242 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.4307, allocations: 0.7006 MB / 1.12 GB, free: 56 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4308, allocations: 0 / 1.12 GB, free: 56 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.4309, allocations: 31.92 kB / 1.12 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4309, allocations: 192 / 1.12 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.4309, allocations: 7.984 kB / 1.12 GB, free: 16 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.944e-06/0.4309, allocations: 11.88 kB / 1.12 GB, free: 4 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4309, allocations: 0 / 1.12 GB, free: 4 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.4315, allocations: 344.2 kB / 1.12 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.4317, allocations: 140.5 kB / 1.121 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.4317, allocations: 4 kB / 1.121 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.4319, allocations: 15.92 kB / 1.121 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.432, allocations: 19.92 kB / 1.121 GB, free: 15.45 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.432, allocations: 8 kB / 1.121 GB, free: 15.44 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004105/0.4324, allocations: 334.9 kB / 1.121 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4325, allocations: 0 / 1.121 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000737/0.4332, allocations: 203.6 kB / 1.121 GB, free: 14.91 MB / 0.8887 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001253/0.4345, allocations: 469.9 kB / 1.122 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0007353/0.4352, allocations: 279.1 kB / 1.122 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4352, allocations: 4 kB / 1.122 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.4354, allocations: 79.89 kB / 1.122 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4365, allocations: 197.7 kB / 1.122 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.438, allocations: 0.7052 MB / 1.123 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.4385, allocations: 0.8269 MB / 1.124 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000242/0.4387, allocations: 91.47 kB / 1.124 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.72e-05/0.4388, allocations: 39.42 kB / 1.124 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of SimCode: time 2.2e-07/0.4388, allocations: 0 / 1.124 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of Templates: time 0.01555/0.4544, allocations: 8.649 MB / 1.132 GB, free: 3.781 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches