Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.375/1.375, allocations: 249.5 MB / 257 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 183.7 kB / 316.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008215/0.0008215, allocations: 95.25 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.674e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1881, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.508, allocations: 395.9 MB / 1.272 GB, free: 322 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/1.508, allocations: 95.5 kB / 1.272 GB, free: 322 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2994/1.807, allocations: 169.2 MB / 1.437 GB, free: 178 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.154e-06/1.808, allocations: 0 / 1.437 GB, free: 178 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.166e-05/1.808, allocations: 19.94 kB / 1.437 GB, free: 178 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001008/1.809, allocations: 0.7707 MB / 1.438 GB, free: 177.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/1.809, allocations: 8.031 kB / 1.438 GB, free: 177.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/1.809, allocations: 67.2 kB / 1.438 GB, free: 177.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005808/1.809, allocations: 463.5 kB / 1.438 GB, free: 176.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/1.809, allocations: 8 kB / 1.438 GB, free: 176.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/1.809, allocations: 20 kB / 1.438 GB, free: 176.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002442/1.81, allocations: 157.1 kB / 1.439 GB, free: 176.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/1.81, allocations: 223.4 kB / 1.439 GB, free: 176.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/1.81, allocations: 3.938 kB / 1.439 GB, free: 176.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/1.81, allocations: 0 / 1.439 GB, free: 176.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/1.81, allocations: 11.95 kB / 1.439 GB, free: 176.1 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.001409/1.811, allocations: 1.238 MB / 1.44 GB, free: 174.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/1.812, allocations: 171.1 kB / 1.44 GB, free: 174.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.978e-05/1.812, allocations: 77.25 kB / 1.44 GB, free: 174.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/1.813, allocations: 1.32 MB / 1.442 GB, free: 173.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/1.813, allocations: 30.56 kB / 1.442 GB, free: 173 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/1.813, allocations: 0 / 1.442 GB, free: 173 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18): time 0.0004635/1.814, allocations: 208.9 kB / 1.442 GB, free: 172.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.833e-05/1.814, allocations: 59.41 kB / 1.442 GB, free: 172.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004157/1.814, allocations: 465.2 kB / 1.442 GB, free: 172.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/1.814, allocations: 25.7 kB / 1.442 GB, free: 172.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/1.814, allocations: 260.3 kB / 1.443 GB, free: 172 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/1.814, allocations: 67.09 kB / 1.443 GB, free: 171.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/1.814, allocations: 0 / 1.443 GB, free: 171.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.032e-05/1.814, allocations: 350.8 kB / 1.443 GB, free: 171.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.635e-05/1.814, allocations: 59.98 kB / 1.443 GB, free: 171.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/1.815, allocations: 202.4 kB / 1.443 GB, free: 171.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/1.815, allocations: 121.1 kB / 1.443 GB, free: 171.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/1.815, allocations: 0 / 1.443 GB, free: 171.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004536/1.815, allocations: 299.5 kB / 1.444 GB, free: 170.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.00014/1.815, allocations: 0.788 MB / 1.444 GB, free: 170 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/1.815, allocations: 0 / 1.444 GB, free: 170 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.815, allocations: 8 kB / 1.444 GB, free: 170 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/1.816, allocations: 75.89 kB / 1.444 GB, free: 169.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/1.816, allocations: 0 / 1.444 GB, free: 169.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/1.816, allocations: 43.66 kB / 1.444 GB, free: 169.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/1.816, allocations: 20 kB / 1.445 GB, free: 169.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/1.816, allocations: 8 kB / 1.445 GB, free: 169.9 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004009/1.817, allocations: 211.5 kB / 1.445 GB, free: 169.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-06/1.817, allocations: 0 / 1.445 GB, free: 169.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.579e-06/1.817, allocations: 7.953 kB / 1.445 GB, free: 169.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/1.817, allocations: 67.91 kB / 1.445 GB, free: 169.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/1.817, allocations: 4 kB / 1.445 GB, free: 169.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/1.817, allocations: 40 kB / 1.445 GB, free: 169.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/1.817, allocations: 19.92 kB / 1.445 GB, free: 169.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/1.817, allocations: 108.9 kB / 1.445 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.748e-05/1.817, allocations: 47.44 kB / 1.445 GB, free: 169.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004842/1.818, allocations: 273.5 kB / 1.445 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/1.818, allocations: 7.984 kB / 1.445 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/1.818, allocations: 0 / 1.445 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/1.818, allocations: 192 / 1.445 GB, free: 169.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007848/1.819, allocations: 0.7128 MB / 1.446 GB, free: 168.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/1.819, allocations: 4.031 kB / 1.446 GB, free: 168.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/1.819, allocations: 47.91 kB / 1.446 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/1.819, allocations: 0 / 1.446 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/1.819, allocations: 4 kB / 1.446 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.819, allocations: 0 / 1.446 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.819, allocations: 4 kB / 1.446 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/1.819, allocations: 483.3 kB / 1.446 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/1.819, allocations: 156.4 kB / 1.447 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/1.819, allocations: 0 / 1.447 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/1.82, allocations: 27.94 kB / 1.447 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/1.82, allocations: 11.98 kB / 1.447 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/1.82, allocations: 15.94 kB / 1.447 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00028/1.82, allocations: 354.9 kB / 1.447 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2e-07/1.82, allocations: 0 / 1.447 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007328/1.821, allocations: 267.5 kB / 1.447 GB, free: 166.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (senVolFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009495/1.822, allocations: 0.5562 MB / 1.448 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004037/1.822, allocations: 312.4 kB / 1.448 GB, free: 166.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.822, allocations: 0 / 1.448 GB, free: 166.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.678e-05/1.822, allocations: 79.86 kB / 1.448 GB, free: 166 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/1.823, allocations: 215.4 kB / 1.448 GB, free: 165.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008851/1.824, allocations: 0.6327 MB / 1.449 GB, free: 165.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/1.824, allocations: 0.8628 MB / 1.45 GB, free: 164.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000437/1.825, allocations: 180.1 kB / 1.45 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.695e-05/1.825, allocations: 31.42 kB / 1.45 GB, free: 164 MB / 0.8698 GB Notification: Performance of SimCode: time 7.91e-07/1.825, allocations: 0 / 1.45 GB, free: 164 MB / 0.8698 GB Notification: Performance of Templates: time 0.01272/1.838, allocations: 10.09 MB / 1.46 GB, free: 154 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches