Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.449/1.449, allocations: 249.3 MB / 261.8 MB, free: 5.891 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.001056/0.001056, allocations: 180.5 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.001093/0.001093, allocations: 86.47 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.159e-05/4.161e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.276, allocations: 371.2 MB / 1.254 GB, free: 11.55 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/1.276, allocations: 85.64 kB / 1.254 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.037/2.314, allocations: 244.7 MB / 1.493 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.693e-06/2.314, allocations: 0 / 1.493 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.602e-05/2.314, allocations: 19.98 kB / 1.493 GB, free: 121.2 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001637/2.315, allocations: 0.8256 MB / 1.494 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/2.316, allocations: 8.031 kB / 1.494 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/2.316, allocations: 71.2 kB / 1.494 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007357/2.316, allocations: 463.6 kB / 1.495 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/2.316, allocations: 28.78 kB / 1.495 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.898e-05/2.317, allocations: 36 kB / 1.495 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/2.317, allocations: 271.7 kB / 1.495 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/2.317, allocations: 0 / 1.495 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/2.317, allocations: 12 kB / 1.495 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/2.317, allocations: 15.89 kB / 1.495 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/2.317, allocations: 199 kB / 1.495 GB, free: 119.2 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.001839/2.319, allocations: 1.33 MB / 1.496 GB, free: 117.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/2.32, allocations: 242.5 kB / 1.497 GB, free: 117.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/2.32, allocations: 96.84 kB / 1.497 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003584/2.32, allocations: 0.4986 MB / 1.497 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/2.32, allocations: 42.55 kB / 1.497 GB, free: 116.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=25): time 1.462e-06/2.32, allocations: 0 / 1.497 GB, free: 116.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=25): time 0.0005427/2.321, allocations: 270.2 kB / 1.498 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/2.321, allocations: 55.41 kB / 1.498 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003648/2.321, allocations: 400 kB / 1.498 GB, free: 116 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/2.321, allocations: 37.7 kB / 1.498 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/2.321, allocations: 240.8 kB / 1.498 GB, free: 115.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/2.321, allocations: 82.75 kB / 1.498 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.67e-05/2.322, allocations: 8 kB / 1.498 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.355e-05/2.322, allocations: 354.8 kB / 1.499 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/2.322, allocations: 87.98 kB / 1.499 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/2.322, allocations: 178.2 kB / 1.499 GB, free: 115 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/2.322, allocations: 107.5 kB / 1.499 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/2.322, allocations: 0 / 1.499 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000564/2.323, allocations: 344.7 kB / 1.499 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.171e-05/2.323, allocations: 275 kB / 1.5 GB, free: 114.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/2.323, allocations: 0 / 1.5 GB, free: 114.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002661/2.323, allocations: 48.8 kB / 1.5 GB, free: 114.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/2.323, allocations: 75.89 kB / 1.5 GB, free: 114.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003268/2.324, allocations: 0.5679 MB / 1.5 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/2.324, allocations: 63.64 kB / 1.5 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.192e-05/2.324, allocations: 24.05 kB / 1.5 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/2.324, allocations: 4 kB / 1.5 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003692/2.325, allocations: 238.3 kB / 1.501 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-06/2.325, allocations: 3.938 kB / 1.501 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.758e-06/2.325, allocations: 4 kB / 1.501 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/2.325, allocations: 91.88 kB / 1.501 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/2.325, allocations: 0 / 1.501 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004228/2.326, allocations: 71.62 kB / 1.501 GB, free: 113 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/2.326, allocations: 16 kB / 1.501 GB, free: 113 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001022/2.326, allocations: 132.9 kB / 1.501 GB, free: 112.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/2.326, allocations: 47.38 kB / 1.501 GB, free: 112.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006133/2.326, allocations: 360.3 kB / 1.501 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/2.326, allocations: 4 kB / 1.501 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/2.326, allocations: 0 / 1.501 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/2.326, allocations: 144 / 1.501 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/2.328, allocations: 0.8802 MB / 1.502 GB, free: 111.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/2.328, allocations: 4.031 kB / 1.502 GB, free: 111.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/2.328, allocations: 55.89 kB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001555/2.328, allocations: 44.83 kB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/2.328, allocations: 7.984 kB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002638/2.328, allocations: 0.5679 MB / 1.503 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/2.328, allocations: 0 / 1.503 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004844/2.329, allocations: 487.4 kB / 1.503 GB, free: 110.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/2.329, allocations: 156.3 kB / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.862e-05/2.329, allocations: 8 kB / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/2.329, allocations: 43.95 kB / 1.503 GB, free: 110 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.741e-05/2.329, allocations: 27.92 kB / 1.504 GB, free: 110 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/2.329, allocations: 11.98 kB / 1.504 GB, free: 110 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003092/2.33, allocations: 313.6 kB / 1.504 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.142e-06/2.33, allocations: 0 / 1.504 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009841/2.331, allocations: 283.5 kB / 1.504 GB, free: 109.4 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008069/2.332, allocations: 371.9 kB / 1.504 GB, free: 109 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0007524/2.332, allocations: 394.4 kB / 1.505 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/2.332, allocations: 0 / 1.505 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002409/2.333, allocations: 140.1 kB / 1.505 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/2.334, allocations: 247 kB / 1.505 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/2.335, allocations: 0.5853 MB / 1.506 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/2.335, allocations: 0.8678 MB / 1.507 GB, free: 106.8 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0005121/2.336, allocations: 136.2 kB / 1.507 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.601e-05/2.336, allocations: 31.44 kB / 1.507 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.553e-06/2.336, allocations: 0 / 1.507 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.01876/2.355, allocations: 12.23 MB / 1.519 GB, free: 94.46 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches