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.001731/0.001731, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001829/0.001829, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.451/1.451, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.433/2.433, allocations: 390.2 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 63.89 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7892/0.7906, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01734/0.808, allocations: 15.54 MB / 1.104 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007369/0.8154, allocations: 4.33 MB / 1.108 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009466/0.8163, allocations: 17.25 kB / 1.108 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.8177, allocations: 257.9 kB / 1.108 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002272/0.82, allocations: 0.6086 MB / 1.109 GB, free: 6.836 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002712/0.8227, allocations: 0.7116 MB / 1.11 GB, free: 6.488 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002066/0.8248, allocations: 1.022 MB / 1.111 GB, free: 6.023 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00072/0.8255, allocations: 348.5 kB / 1.111 GB, free: 5.875 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.8266, allocations: 429.2 kB / 1.111 GB, free: 5.688 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000788/0.8274, allocations: 322.3 kB / 1.112 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.8276, allocations: 27.72 kB / 1.112 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001757/0.8293, allocations: 0.6306 MB / 1.112 GB, free: 5.344 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.8296, allocations: 102.9 kB / 1.112 GB, free: 5.285 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004863/0.8301, allocations: 220.8 kB / 1.113 GB, free: 5.156 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.8321, allocations: 0.76 MB / 1.113 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.8322, allocations: 4 kB / 1.113 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8322, allocations: 0 / 1.113 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.44e-05/0.8322, allocations: 0 / 1.113 GB, free: 4.871 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.00184/0.834, allocations: 0.8336 MB / 1.114 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.8341, allocations: 10.62 kB / 1.114 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.8343, allocations: 54.72 kB / 1.114 GB, free: 4.184 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009068/0.8352, allocations: 437.2 kB / 1.115 GB, free: 3.863 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.8352, allocations: 19.72 kB / 1.115 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.8353, allocations: 26.66 kB / 1.115 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.8359, allocations: 216.2 kB / 1.115 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.8359, allocations: 0 / 1.115 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.8359, allocations: 6.281 kB / 1.115 GB, free: 3.746 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.8359, allocations: 4.625 kB / 1.115 GB, free: 3.746 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004234/0.8364, allocations: 163.8 kB / 1.115 GB, free: 3.703 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.001903/0.8383, allocations: 0.9413 MB / 1.116 GB, free: 3.082 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.8386, allocations: 139.4 kB / 1.116 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.8388, allocations: 75.95 kB / 1.116 GB, free: 2.988 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003126/0.8391, allocations: 335.4 kB / 1.116 GB, free: 2.609 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.8392, allocations: 32.73 kB / 1.117 GB, free: 2.57 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.814e-06/0.8392, allocations: 0 / 1.117 GB, free: 2.57 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0007162/0.8399, allocations: 246.9 kB / 1.117 GB, free: 2.465 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.8399, allocations: 53.34 kB / 1.117 GB, free: 2.402 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006234/0.8406, allocations: 483.1 kB / 1.117 GB, free: 2.176 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.8406, allocations: 32.11 kB / 1.117 GB, free: 2.141 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.8408, allocations: 233.1 kB / 1.118 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.8409, allocations: 46.2 kB / 1.118 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.841, allocations: 60.58 kB / 1.118 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.8412, allocations: 357.8 kB / 1.118 GB, free: 1.539 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.8414, allocations: 68.62 kB / 1.118 GB, free: 1.516 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002841/0.8417, allocations: 157.4 kB / 1.118 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.8421, allocations: 173 kB / 1.118 GB, free: 1.328 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.8421, allocations: 0.5312 kB / 1.118 GB, free: 1.328 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000713/0.8428, allocations: 250.3 kB / 1.119 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.8428, allocations: 5.594 kB / 1.119 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.8429, allocations: 4 kB / 1.119 GB, free: 1.219 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.8429, allocations: 2.875 kB / 1.119 GB, free: 1.219 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.8431, allocations: 46.45 kB / 1.119 GB, free: 1.215 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.8432, allocations: 7.312 kB / 1.119 GB, free: 1.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.8436, allocations: 35.59 kB / 1.119 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.949e-05/0.8436, allocations: 12.77 kB / 1.119 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003203/0.8439, allocations: 188.3 kB / 1.119 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002626/0.8442, allocations: 158.2 kB / 1.119 GB, free: 0.9609 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003542/0.8446, allocations: 173.6 kB / 1.119 GB, free: 0.8672 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.944e-06/0.8446, allocations: 5.406 kB / 1.119 GB, free: 0.8633 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005646/0.8451, allocations: 248.8 kB / 1.119 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.8452, allocations: 5.5 kB / 1.119 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.8452, allocations: 1.719 kB / 1.119 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-06/0.8452, allocations: 2.844 kB / 1.119 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.8454, allocations: 54.34 kB / 1.119 GB, free: 0.7461 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.8454, allocations: 2.312 kB / 1.119 GB, free: 0.7461 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/0.8458, allocations: 30.53 kB / 1.12 GB, free: 0.7383 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.8459, allocations: 10.48 kB / 1.12 GB, free: 0.7383 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.0001375/0.846, allocations: 201.1 kB / 1.12 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.8461, allocations: 39.61 kB / 1.12 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006039/0.8467, allocations: 247.9 kB / 1.12 GB, free: 424 kB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.8467, allocations: 7.391 kB / 1.12 GB, free: 420 kB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8467, allocations: 0 / 1.12 GB, free: 420 kB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.8467, allocations: 5.828 kB / 1.12 GB, free: 416 kB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.8479, allocations: 0.7106 MB / 1.121 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.8479, allocations: 1.125 kB / 1.121 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.8481, allocations: 35.86 kB / 1.121 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.8481, allocations: 1.375 kB / 1.121 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.8481, allocations: 3.984 kB / 1.121 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.8481, allocations: 10.72 kB / 1.121 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.8482, allocations: 1.375 kB / 1.121 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.8487, allocations: 339.2 kB / 1.121 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.8489, allocations: 138.7 kB / 1.121 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.634e-05/0.8489, allocations: 7.609 kB / 1.121 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.8492, allocations: 18.64 kB / 1.121 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.8492, allocations: 15.61 kB / 1.121 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.8493, allocations: 6.188 kB / 1.121 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004499/0.8497, allocations: 337.1 kB / 1.122 GB, free: 15.37 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.683e-06/0.8497, allocations: 0 / 1.122 GB, free: 15.37 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000785/0.8505, allocations: 197.7 kB / 1.122 GB, free: 15.33 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.001197/0.8517, allocations: 481.6 kB / 1.122 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0007195/0.8525, allocations: 273 kB / 1.122 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8525, allocations: 0 / 1.122 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.8527, allocations: 85.69 kB / 1.123 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.8538, allocations: 195.9 kB / 1.123 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.8552, allocations: 0.735 MB / 1.123 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.8557, allocations: 0.8255 MB / 1.124 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.8559, allocations: 42.14 kB / 1.124 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of SimCode: time 2.5e-07/0.8559, allocations: 3.938 kB / 1.124 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of Templates: time 0.01545/0.8713, allocations: 7.366 MB / 1.132 GB, free: 12.88 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/jenkins1/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