Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.356/2.356, allocations: 390.5 MB / 398 MB, free: 10.93 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.001196/0.001196, allocations: 184.6 kB / 491.2 MB, free: 1.559 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.636/1.636, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009637/0.0009637, allocations: 95.83 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.585e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2985, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.263/1.562, allocations: 390.7 MB / 1.594 GB, free: 7.625 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/1.562, allocations: 88.31 kB / 1.594 GB, free: 7.578 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.17/2.732, allocations: 254.8 MB / 1.843 GB, free: 358.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.983e-06/2.732, allocations: 2.312 kB / 1.843 GB, free: 358.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.282e-05/2.732, allocations: 14.06 kB / 1.843 GB, free: 358.3 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.001416/2.734, allocations: 0.8275 MB / 1.844 GB, free: 357.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/2.734, allocations: 9.875 kB / 1.844 GB, free: 357.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/2.734, allocations: 74.23 kB / 1.844 GB, free: 357.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/2.734, allocations: 454.1 kB / 1.844 GB, free: 357.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/2.734, allocations: 15.44 kB / 1.844 GB, free: 357.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/2.735, allocations: 22.78 kB / 1.844 GB, free: 357.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003396/2.735, allocations: 187.9 kB / 1.844 GB, free: 357.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003608/2.735, allocations: 227.7 kB / 1.845 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/2.735, allocations: 0 / 1.845 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/2.735, allocations: 3.938 kB / 1.845 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/2.735, allocations: 11.17 kB / 1.845 GB, free: 357 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.001765/2.737, allocations: 1.257 MB / 1.846 GB, free: 355.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000428/2.738, allocations: 228.1 kB / 1.846 GB, free: 355.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/2.738, allocations: 103.3 kB / 1.846 GB, free: 355.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003353/2.738, allocations: 0.4996 MB / 1.847 GB, free: 355.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/2.738, allocations: 41.34 kB / 1.847 GB, free: 355.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=25): time 1.432e-06/2.738, allocations: 0 / 1.847 GB, free: 355.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=25): time 0.0006582/2.739, allocations: 261.2 kB / 1.847 GB, free: 355 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/2.739, allocations: 55.25 kB / 1.847 GB, free: 355 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/2.739, allocations: 356 kB / 1.847 GB, free: 354.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/2.739, allocations: 25.7 kB / 1.847 GB, free: 354.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/2.739, allocations: 250.4 kB / 1.848 GB, free: 354.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/2.739, allocations: 77.67 kB / 1.848 GB, free: 354.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.731e-05/2.739, allocations: 0 / 1.848 GB, free: 354.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001063/2.739, allocations: 357.8 kB / 1.848 GB, free: 354.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/2.74, allocations: 85.92 kB / 1.848 GB, free: 354 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/2.74, allocations: 176 kB / 1.848 GB, free: 353.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/2.74, allocations: 112.7 kB / 1.848 GB, free: 353.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/2.74, allocations: 3.25 kB / 1.848 GB, free: 353.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006383/2.741, allocations: 343.4 kB / 1.849 GB, free: 353.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/2.741, allocations: 270.1 kB / 1.849 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/2.741, allocations: 3.906 kB / 1.849 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/2.741, allocations: 39.83 kB / 1.849 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003223/2.741, allocations: 69.48 kB / 1.849 GB, free: 353.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003414/2.742, allocations: 0.571 MB / 1.85 GB, free: 352.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/2.742, allocations: 68.19 kB / 1.85 GB, free: 352.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/2.742, allocations: 19.73 kB / 1.85 GB, free: 352.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/2.742, allocations: 6.281 kB / 1.85 GB, free: 352.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004259/2.743, allocations: 222.4 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-06/2.743, allocations: 0 / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.228e-06/2.743, allocations: 3.594 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/2.743, allocations: 92.69 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-06/2.743, allocations: 0 / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/2.744, allocations: 57.09 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/2.744, allocations: 11.69 kB / 1.85 GB, free: 352.6 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.0001342/2.744, allocations: 116.8 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.374e-05/2.744, allocations: 49.64 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006232/2.744, allocations: 336.3 kB / 1.85 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/2.744, allocations: 3.875 kB / 1.85 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/2.744, allocations: 3.984 kB / 1.85 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/2.744, allocations: 3.875 kB / 1.851 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/2.746, allocations: 0.8078 MB / 1.851 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/2.746, allocations: 0 / 1.851 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/2.746, allocations: 55.39 kB / 1.851 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/2.746, allocations: 40.41 kB / 1.851 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/2.746, allocations: 11.62 kB / 1.851 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000235/2.746, allocations: 0.5549 MB / 1.852 GB, free: 351.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/2.746, allocations: 8 kB / 1.852 GB, free: 351.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/2.747, allocations: 472.4 kB / 1.852 GB, free: 350.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/2.747, allocations: 157.1 kB / 1.853 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.665e-05/2.747, allocations: 3.438 kB / 1.853 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/2.747, allocations: 45.59 kB / 1.853 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.655e-05/2.747, allocations: 24.47 kB / 1.853 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/2.747, allocations: 15.78 kB / 1.853 GB, free: 350.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002204/2.748, allocations: 268.4 kB / 1.853 GB, free: 350.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/2.748, allocations: 0 / 1.853 GB, free: 350.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0008262/2.748, allocations: 271.2 kB / 1.853 GB, free: 350.3 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.0006517/2.749, allocations: 365.5 kB / 1.853 GB, free: 350.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0006772/2.75, allocations: 380.4 kB / 1.854 GB, free: 349.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/2.75, allocations: 0 / 1.854 GB, free: 349.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/2.75, allocations: 130.9 kB / 1.854 GB, free: 349.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/2.751, allocations: 231.2 kB / 1.854 GB, free: 349.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/2.752, allocations: 0.556 MB / 1.855 GB, free: 349.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/2.753, allocations: 0.8685 MB / 1.856 GB, free: 348.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0004818/2.753, allocations: 138.5 kB / 1.856 GB, free: 348.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.183e-05/2.753, allocations: 34.11 kB / 1.856 GB, free: 348.6 MB / 1.151 GB Notification: Performance of SimCode: time 2.5e-07/2.753, allocations: 0 / 1.856 GB, free: 348.6 MB / 1.151 GB Notification: Performance of Templates: time 0.0148/2.768, allocations: 10.11 MB / 1.866 GB, free: 341.5 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches