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.437/2.437, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001621/0.001621, allocations: 187.9 kB / 0.4902 GB, free: 2.238 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.805/1.805, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.000958/0.0009579, allocations: 98.83 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004274, allocations: 14.97 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3625, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.377/1.739, allocations: 391.4 MB / 1.611 GB, free: 5.551 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/1.74, allocations: 86.89 kB / 1.612 GB, free: 5.504 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.6711/2.411, allocations: 257.4 MB / 1.863 GB, free: 4.355 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.074e-06/2.411, allocations: 0 / 1.863 GB, free: 4.355 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001156/2.411, allocations: 8 kB / 1.863 GB, free: 4.348 MB / 1.167 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.00281/2.414, allocations: 0.9461 MB / 1.864 GB, free: 3.344 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/2.414, allocations: 8.031 kB / 1.864 GB, free: 3.336 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003224/2.414, allocations: 67.2 kB / 1.864 GB, free: 3.27 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/2.415, allocations: 471.5 kB / 1.864 GB, free: 2.77 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/2.416, allocations: 28.66 kB / 1.864 GB, free: 2.742 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.357e-05/2.416, allocations: 32 kB / 1.864 GB, free: 2.711 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007425/2.416, allocations: 310 kB / 1.865 GB, free: 2.406 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/2.416, allocations: 0 / 1.865 GB, free: 2.406 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/2.416, allocations: 8 kB / 1.865 GB, free: 2.398 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/2.416, allocations: 8 kB / 1.865 GB, free: 2.391 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/2.417, allocations: 278.4 kB / 1.865 GB, free: 2.113 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.002684/2.42, allocations: 1.325 MB / 1.866 GB, free: 0.668 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000758/2.421, allocations: 282.4 kB / 1.867 GB, free: 392 kB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7947/3.215, allocations: 0.4969 MB / 1.867 GB, free: 355.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/3.215, allocations: 35.31 kB / 1.867 GB, free: 355 MB / 1.167 GB Notification: Performance of pre-optimization done (n=25): time 4.458e-06/3.215, allocations: 3.625 kB / 1.867 GB, free: 355 MB / 1.167 GB Notification: Performance of matching and sorting (n=25): time 0.002705/3.218, allocations: 0.5729 MB / 1.868 GB, free: 354.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/3.218, allocations: 58.42 kB / 1.868 GB, free: 354.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000678/3.219, allocations: 408.6 kB / 1.868 GB, free: 354.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/3.219, allocations: 36.58 kB / 1.868 GB, free: 354.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/3.219, allocations: 239.5 kB / 1.868 GB, free: 354.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 9.536e-05/3.219, allocations: 89.31 kB / 1.868 GB, free: 354.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/3.219, allocations: 7.5 kB / 1.868 GB, free: 354.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001598/3.219, allocations: 358.8 kB / 1.869 GB, free: 354.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/3.22, allocations: 120.3 kB / 1.869 GB, free: 354.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/3.22, allocations: 220.5 kB / 1.869 GB, free: 354.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/3.221, allocations: 143.4 kB / 1.869 GB, free: 354.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/3.221, allocations: 0 / 1.869 GB, free: 354.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009951/3.222, allocations: 413.3 kB / 1.87 GB, free: 354.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/3.222, allocations: 274.7 kB / 1.87 GB, free: 353.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/3.222, allocations: 0 / 1.87 GB, free: 353.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/3.222, allocations: 51.88 kB / 1.87 GB, free: 353.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/3.223, allocations: 71.92 kB / 1.87 GB, free: 353.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004759/3.223, allocations: 0.5687 MB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/3.224, allocations: 73.73 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.083e-05/3.224, allocations: 20.11 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/3.224, allocations: 3.062 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007131/3.224, allocations: 312 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/3.225, allocations: 2.969 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.228e-06/3.225, allocations: 0 / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/3.225, allocations: 89.47 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/3.225, allocations: 2.781 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/3.225, allocations: 61.61 kB / 1.871 GB, free: 353.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/3.225, allocations: 18.48 kB / 1.871 GB, free: 353.3 MB / 1.167 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 () * Number of clocked 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.0003072/3.226, allocations: 254.2 kB / 1.871 GB, free: 353.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.186e-05/3.226, allocations: 48.94 kB / 1.871 GB, free: 353.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/3.227, allocations: 424.7 kB / 1.872 GB, free: 353 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/3.227, allocations: 5.969 kB / 1.872 GB, free: 353 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/3.227, allocations: 0 / 1.872 GB, free: 353 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/3.227, allocations: 3.938 kB / 1.872 GB, free: 353 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/3.229, allocations: 0.9478 MB / 1.873 GB, free: 352.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/3.229, allocations: 0.5156 kB / 1.873 GB, free: 352.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/3.229, allocations: 60.92 kB / 1.873 GB, free: 352.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/3.229, allocations: 44.36 kB / 1.873 GB, free: 352.7 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/3.229, allocations: 8.547 kB / 1.873 GB, free: 352.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003957/3.23, allocations: 0.562 MB / 1.873 GB, free: 352.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.351e-06/3.23, allocations: 1.641 kB / 1.873 GB, free: 352.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/3.231, allocations: 0.5366 MB / 1.874 GB, free: 351.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/3.231, allocations: 161.7 kB / 1.874 GB, free: 351.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/3.231, allocations: 3.641 kB / 1.874 GB, free: 351.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004337/3.232, allocations: 48.8 kB / 1.874 GB, free: 351.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/3.232, allocations: 27.77 kB / 1.874 GB, free: 351.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/3.232, allocations: 19.38 kB / 1.874 GB, free: 351.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005507/3.232, allocations: 325.5 kB / 1.875 GB, free: 351.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.2e-07/3.232, allocations: 0 / 1.875 GB, free: 351.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001408/3.234, allocations: 275.3 kB / 1.875 GB, free: 351.7 MB / 1.167 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 () * Number of clocked 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.001169/3.235, allocations: 362.8 kB / 1.875 GB, free: 351.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001763/3.237, allocations: 483.7 kB / 1.876 GB, free: 351.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/3.237, allocations: 1.312 kB / 1.876 GB, free: 351.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005173/3.237, allocations: 176.4 kB / 1.876 GB, free: 351.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/3.239, allocations: 252.5 kB / 1.876 GB, free: 351.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/3.241, allocations: 0.9745 MB / 1.877 GB, free: 351 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007874/3.242, allocations: 0.8739 MB / 1.878 GB, free: 350.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0006666/3.242, allocations: 117.1 kB / 1.878 GB, free: 350.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/3.243, allocations: 44.31 kB / 1.878 GB, free: 350.3 MB / 1.167 GB Notification: Performance of SimCode: time 2.004e-06/3.243, allocations: 2.781 kB / 1.878 GB, free: 350.3 MB / 1.167 GB Notification: Performance of Templates: time 0.03589/3.278, allocations: 11.03 MB / 1.889 GB, free: 350.2 MB / 1.167 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