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.488/1.488, allocations: 249.5 MB / 257 MB, free: 6.977 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.001196/0.001196, allocations: 172 kB / 316.3 MB, free: 3.219 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.672/1.672, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.001069/0.001069, allocations: 89.91 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.939e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2285, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9628/1.191, allocations: 371.4 MB / 1.248 GB, free: 14.39 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/1.192, allocations: 85.27 kB / 1.248 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.048/2.24, allocations: 242.8 MB / 1.485 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.443e-06/2.24, allocations: 0 / 1.485 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.223e-05/2.24, allocations: 19.98 kB / 1.485 GB, free: 114.5 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.001434/2.242, allocations: 0.8255 MB / 1.486 GB, free: 113.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/2.242, allocations: 12.03 kB / 1.486 GB, free: 113.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/2.242, allocations: 67.2 kB / 1.486 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006216/2.242, allocations: 463.6 kB / 1.486 GB, free: 113 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/2.242, allocations: 12 kB / 1.486 GB, free: 113 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.86e-05/2.242, allocations: 24 kB / 1.487 GB, free: 113 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003139/2.243, allocations: 197.5 kB / 1.487 GB, free: 112.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/2.243, allocations: 226.2 kB / 1.487 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/2.243, allocations: 3.938 kB / 1.487 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/2.243, allocations: 3.953 kB / 1.487 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/2.243, allocations: 8 kB / 1.487 GB, free: 112.6 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.001649/2.245, allocations: 1.251 MB / 1.488 GB, free: 111.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/2.245, allocations: 234.5 kB / 1.488 GB, free: 111 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/2.245, allocations: 97.44 kB / 1.488 GB, free: 110.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00031/2.246, allocations: 0.4986 MB / 1.489 GB, free: 110.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/2.246, allocations: 42.55 kB / 1.489 GB, free: 110.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/2.246, allocations: 4 kB / 1.489 GB, free: 110.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=25): time 0.0006327/2.246, allocations: 268.6 kB / 1.489 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/2.246, allocations: 55.41 kB / 1.489 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/2.247, allocations: 357.2 kB / 1.49 GB, free: 109.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/2.247, allocations: 25.7 kB / 1.49 GB, free: 109.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/2.247, allocations: 248.6 kB / 1.49 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/2.247, allocations: 82.75 kB / 1.49 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/2.247, allocations: 0 / 1.49 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.812e-05/2.247, allocations: 354.8 kB / 1.49 GB, free: 108.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/2.247, allocations: 79.98 kB / 1.49 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/2.247, allocations: 174.2 kB / 1.491 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/2.248, allocations: 116.8 kB / 1.491 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/2.248, allocations: 0 / 1.491 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006032/2.248, allocations: 337.8 kB / 1.491 GB, free: 108.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.634e-05/2.248, allocations: 281.9 kB / 1.491 GB, free: 107.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/2.248, allocations: 0 / 1.491 GB, free: 107.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001991/2.249, allocations: 36.84 kB / 1.491 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/2.249, allocations: 75.88 kB / 1.491 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003071/2.249, allocations: 0.5719 MB / 1.492 GB, free: 107.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/2.25, allocations: 59.75 kB / 1.492 GB, free: 107 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.113e-05/2.25, allocations: 19.98 kB / 1.492 GB, free: 107 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.847e-06/2.25, allocations: 6.031 kB / 1.492 GB, free: 107 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004113/2.25, allocations: 215.8 kB / 1.492 GB, free: 106.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/2.25, allocations: 0 / 1.492 GB, free: 106.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-06/2.25, allocations: 4 kB / 1.492 GB, free: 106.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/2.251, allocations: 83.89 kB / 1.492 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/2.251, allocations: 11.94 kB / 1.492 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/2.251, allocations: 59.62 kB / 1.492 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/2.251, allocations: 23.97 kB / 1.492 GB, free: 106.6 MB / 0.8698 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.0001221/2.251, allocations: 113.1 kB / 1.493 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/2.251, allocations: 47.39 kB / 1.493 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006092/2.252, allocations: 331.6 kB / 1.493 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/2.252, allocations: 0 / 1.493 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/2.252, allocations: 0 / 1.493 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/2.252, allocations: 4 kB / 1.493 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009856/2.253, allocations: 0.8105 MB / 1.494 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/2.253, allocations: 0 / 1.494 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/2.253, allocations: 51.91 kB / 1.494 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/2.253, allocations: 40.97 kB / 1.494 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/2.253, allocations: 4 kB / 1.494 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002187/2.253, allocations: 0.568 MB / 1.494 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/2.253, allocations: 3.953 kB / 1.494 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004683/2.254, allocations: 462 kB / 1.495 GB, free: 104 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/2.254, allocations: 156.3 kB / 1.495 GB, free: 103.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/2.254, allocations: 4 kB / 1.495 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/2.255, allocations: 43.89 kB / 1.495 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/2.255, allocations: 23.91 kB / 1.495 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/2.255, allocations: 12 kB / 1.495 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002128/2.255, allocations: 274.9 kB / 1.495 GB, free: 103.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/2.255, allocations: 0 / 1.495 GB, free: 103.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008037/2.256, allocations: 271.5 kB / 1.496 GB, free: 103.2 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.0006269/2.256, allocations: 371.1 kB / 1.496 GB, free: 102.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006363/2.257, allocations: 378.1 kB / 1.496 GB, free: 102.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/2.257, allocations: 4 kB / 1.496 GB, free: 102.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/2.257, allocations: 133 kB / 1.496 GB, free: 102.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/2.258, allocations: 233.6 kB / 1.497 GB, free: 102.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009054/2.259, allocations: 0.5597 MB / 1.497 GB, free: 101.6 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/2.26, allocations: 0.8712 MB / 1.498 GB, free: 100.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0004547/2.26, allocations: 124 kB / 1.498 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.79e-05/2.26, allocations: 31.44 kB / 1.498 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of SimCode: time 3.01e-07/2.26, allocations: 0 / 1.498 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of Templates: time 0.01421/2.274, allocations: 10.12 MB / 1.508 GB, free: 90.5 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