Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.195/2.195, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 184.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.587/1.587, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 102.7 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.445e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3288, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.22/1.549, allocations: 389.9 MB / 1.587 GB, free: 140 kB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/1.549, allocations: 78.77 kB / 1.587 GB, free: 100 kB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 1.258/2.808, allocations: 254.8 MB / 1.836 GB, free: 366.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.513e-06/2.808, allocations: 0 / 1.836 GB, free: 366.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.226e-05/2.808, allocations: 19.56 kB / 1.836 GB, free: 366.7 MB / 1.151 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.001887/2.81, allocations: 0.8331 MB / 1.836 GB, free: 366 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/2.81, allocations: 9.531 kB / 1.836 GB, free: 366 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002811/2.81, allocations: 64.34 kB / 1.837 GB, free: 366 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009921/2.811, allocations: 463.3 kB / 1.837 GB, free: 365.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/2.811, allocations: 15.28 kB / 1.837 GB, free: 365.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.576e-05/2.811, allocations: 19.66 kB / 1.837 GB, free: 365.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003853/2.811, allocations: 190.5 kB / 1.837 GB, free: 365.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004007/2.812, allocations: 230.2 kB / 1.837 GB, free: 365.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/2.812, allocations: 3.75 kB / 1.837 GB, free: 365.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/2.812, allocations: 0 / 1.837 GB, free: 365.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/2.812, allocations: 3.938 kB / 1.837 GB, free: 365.4 MB / 1.151 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.002031/2.814, allocations: 1.259 MB / 1.839 GB, free: 364.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/2.814, allocations: 235 kB / 1.839 GB, free: 364.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/2.815, allocations: 94.41 kB / 1.839 GB, free: 364.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003308/2.815, allocations: 0.4959 MB / 1.839 GB, free: 363.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/2.815, allocations: 38.44 kB / 1.839 GB, free: 363.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=25): time 2.454e-06/2.815, allocations: 0 / 1.839 GB, free: 363.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=25): time 0.0006958/2.816, allocations: 263.1 kB / 1.84 GB, free: 363.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.261e-05/2.816, allocations: 51.41 kB / 1.84 GB, free: 363.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/2.816, allocations: 357.5 kB / 1.84 GB, free: 363.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/2.816, allocations: 29.52 kB / 1.84 GB, free: 363.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/2.816, allocations: 243 kB / 1.84 GB, free: 362.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/2.816, allocations: 85.7 kB / 1.84 GB, free: 362.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/2.816, allocations: 3.062 kB / 1.84 GB, free: 362.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.306e-05/2.816, allocations: 358 kB / 1.841 GB, free: 362.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/2.817, allocations: 83.7 kB / 1.841 GB, free: 362.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/2.817, allocations: 174.9 kB / 1.841 GB, free: 362.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/2.817, allocations: 115 kB / 1.841 GB, free: 362.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/2.817, allocations: 3.125 kB / 1.841 GB, free: 362.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006788/2.818, allocations: 335.6 kB / 1.841 GB, free: 362 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/2.818, allocations: 274.8 kB / 1.842 GB, free: 361.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/2.818, allocations: 0 / 1.842 GB, free: 361.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002166/2.818, allocations: 46.8 kB / 1.842 GB, free: 361.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/2.819, allocations: 73.67 kB / 1.842 GB, free: 361.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003451/2.819, allocations: 0.5671 MB / 1.842 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/2.819, allocations: 68.53 kB / 1.842 GB, free: 361.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/2.819, allocations: 15.88 kB / 1.842 GB, free: 361.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/2.819, allocations: 10.95 kB / 1.843 GB, free: 361.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004481/2.82, allocations: 221.8 kB / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-06/2.82, allocations: 0 / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/2.82, allocations: 3.719 kB / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/2.82, allocations: 88.81 kB / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/2.82, allocations: 3.984 kB / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/2.821, allocations: 60.69 kB / 1.843 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/2.821, allocations: 22.55 kB / 1.843 GB, free: 361 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real 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.0001477/2.821, allocations: 113 kB / 1.843 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-05/2.821, allocations: 49.77 kB / 1.843 GB, free: 360.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/2.822, allocations: 331.9 kB / 1.843 GB, free: 360.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/2.822, allocations: 11.92 kB / 1.843 GB, free: 360.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/2.822, allocations: 6.812 kB / 1.843 GB, free: 360.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/2.822, allocations: 0 / 1.843 GB, free: 360.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/2.823, allocations: 0.8127 MB / 1.844 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/2.823, allocations: 3.984 kB / 1.844 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/2.823, allocations: 55.12 kB / 1.844 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001318/2.824, allocations: 32.5 kB / 1.844 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/2.824, allocations: 10.45 kB / 1.844 GB, free: 360 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002454/2.824, allocations: 0.555 MB / 1.845 GB, free: 359.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/2.824, allocations: 0 / 1.845 GB, free: 359.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005368/2.824, allocations: 478.7 kB / 1.845 GB, free: 359.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/2.825, allocations: 146.8 kB / 1.845 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/2.825, allocations: 7.703 kB / 1.845 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/2.825, allocations: 40.36 kB / 1.845 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/2.825, allocations: 22.91 kB / 1.845 GB, free: 358.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/2.825, allocations: 11.88 kB / 1.845 GB, free: 358.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002518/2.825, allocations: 272 kB / 1.846 GB, free: 358.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.21e-07/2.825, allocations: 0 / 1.846 GB, free: 358.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0009179/2.826, allocations: 266 kB / 1.846 GB, free: 358.7 MB / 1.151 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.0007862/2.827, allocations: 359.5 kB / 1.846 GB, free: 358.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0007309/2.828, allocations: 387.2 kB / 1.847 GB, free: 358.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/2.828, allocations: 0 / 1.847 GB, free: 358.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002241/2.828, allocations: 125.9 kB / 1.847 GB, free: 358.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/2.829, allocations: 240.4 kB / 1.847 GB, free: 358.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/2.83, allocations: 0.5549 MB / 1.848 GB, free: 357.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/2.831, allocations: 0.8682 MB / 1.848 GB, free: 357.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005482/2.831, allocations: 135.8 kB / 1.849 GB, free: 357 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.82e-05/2.831, allocations: 34 kB / 1.849 GB, free: 357 MB / 1.151 GB Notification: Performance of SimCode: time 1.623e-06/2.831, allocations: 3.5 kB / 1.849 GB, free: 357 MB / 1.151 GB Notification: Performance of Templates: time 0.01684/2.848, allocations: 10.1 MB / 1.858 GB, free: 352.1 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches