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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 182.9 kB / 16.92 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.463/2.463, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.000368, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6949/0.6953, allocations: 142.4 MB / 0.9557 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02688/0.7222, allocations: 20.07 MB / 0.9753 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01152/0.7338, allocations: 4.917 MB / 0.9801 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00178/0.7356, allocations: 14.94 kB / 0.9801 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.7372, allocations: 221.6 kB / 0.9803 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003444/0.7407, allocations: 0.7515 MB / 0.9811 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.7432, allocations: 0.6418 MB / 0.9817 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003242/0.7465, allocations: 1.806 MB / 0.9834 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.7475, allocations: 377.9 kB / 0.9838 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.7492, allocations: 0.5151 MB / 0.9843 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.7503, allocations: 451.5 kB / 0.9847 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.7503, allocations: 20.34 kB / 0.9848 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00153/0.7519, allocations: 0.5984 MB / 0.9853 GB, free: 200 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.752, allocations: 106.6 kB / 0.9854 GB, free: 120 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.7524, allocations: 296.1 kB / 0.9857 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.7534, allocations: 0.5835 MB / 0.9863 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7534, allocations: 0 / 0.9863 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7534, allocations: 0 / 0.9863 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.7534, allocations: 1.438 kB / 0.9863 GB, free: 15.55 MB / 0.7481 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.001668/0.7551, allocations: 0.8347 MB / 0.9871 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.7552, allocations: 9.344 kB / 0.9871 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.7553, allocations: 63.28 kB / 0.9872 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007346/0.756, allocations: 442.5 kB / 0.9876 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.7561, allocations: 27.53 kB / 0.9876 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.633e-05/0.7562, allocations: 43.39 kB / 0.9877 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007387/0.7569, allocations: 315.4 kB / 0.988 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.757, allocations: 0 / 0.988 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.757, allocations: 8 kB / 0.988 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.757, allocations: 8 kB / 0.988 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006783/0.7577, allocations: 282.4 kB / 0.9883 GB, free: 13.81 MB / 0.7481 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.002469/0.7602, allocations: 1.364 MB / 0.9896 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005495/0.7608, allocations: 276.6 kB / 0.9899 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.7611, allocations: 144.8 kB / 0.99 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005437/0.7616, allocations: 0.4947 MB / 0.9905 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.7617, allocations: 34.56 kB / 0.9905 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=25): time 2.164e-06/0.7617, allocations: 0 / 0.9905 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of matching and sorting (n=25): time 0.001878/0.7636, allocations: 0.5944 MB / 0.9911 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.7636, allocations: 55.41 kB / 0.9911 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.7642, allocations: 470 kB / 0.9916 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.7642, allocations: 29.7 kB / 0.9916 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.7644, allocations: 248.5 kB / 0.9919 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.7645, allocations: 82.75 kB / 0.9919 GB, free: 9.73 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/0.7646, allocations: 33.7 kB / 0.992 GB, free: 9.691 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.7648, allocations: 362.8 kB / 0.9923 GB, free: 9.328 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.7651, allocations: 123.9 kB / 0.9924 GB, free: 9.207 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.7655, allocations: 193 kB / 0.9926 GB, free: 9 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006714/0.7662, allocations: 293.5 kB / 0.9929 GB, free: 8.707 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.7662, allocations: 0 / 0.9929 GB, free: 8.707 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001586/0.7678, allocations: 0.5054 MB / 0.9934 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-05/0.7679, allocations: 107.7 kB / 0.9935 GB, free: 8.074 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.7679, allocations: 0 / 0.9935 GB, free: 8.074 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003881/0.7683, allocations: 60.88 kB / 0.9936 GB, free: 8.012 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.7687, allocations: 75.89 kB / 0.9936 GB, free: 7.938 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004902/0.7692, allocations: 0.5679 MB / 0.9942 GB, free: 7.344 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005741/0.7698, allocations: 63.73 kB / 0.9942 GB, free: 7.281 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.7698, allocations: 19.98 kB / 0.9943 GB, free: 7.262 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.7698, allocations: 4 kB / 0.9943 GB, free: 7.258 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007371/0.7706, allocations: 326.3 kB / 0.9946 GB, free: 6.941 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7706, allocations: 4 kB / 0.9946 GB, free: 6.938 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-06/0.7706, allocations: 0 / 0.9946 GB, free: 6.938 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003786/0.771, allocations: 83.89 kB / 0.9947 GB, free: 6.855 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.771, allocations: 7.984 kB / 0.9947 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/0.7715, allocations: 67.58 kB / 0.9947 GB, free: 6.781 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.7715, allocations: 12 kB / 0.9947 GB, free: 6.77 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003035/0.7718, allocations: 257 kB / 0.995 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.7719, allocations: 43.44 kB / 0.995 GB, free: 6.465 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.7729, allocations: 442.1 kB / 0.9954 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.773, allocations: 4.141 kB / 0.9955 GB, free: 6.016 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.773, allocations: 3.984 kB / 0.9955 GB, free: 6.012 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.773, allocations: 7.922 kB / 0.9955 GB, free: 6.004 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.7746, allocations: 0.9612 MB / 0.9964 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.7746, allocations: 4 kB / 0.9964 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.7748, allocations: 56.03 kB / 0.9965 GB, free: 4.914 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001826/0.775, allocations: 48.7 kB / 0.9965 GB, free: 4.863 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.775, allocations: 11.94 kB / 0.9965 GB, free: 4.852 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000372/0.7754, allocations: 0.5718 MB / 0.9971 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.7754, allocations: 4.062 kB / 0.9971 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008153/0.7763, allocations: 0.4999 MB / 0.9976 GB, free: 3.719 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.7765, allocations: 160.3 kB / 0.9977 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.689e-05/0.7765, allocations: 4 kB / 0.9977 GB, free: 3.539 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.7769, allocations: 51.8 kB / 0.9978 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.759e-05/0.777, allocations: 27.97 kB / 0.9978 GB, free: 3.461 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.777, allocations: 15.94 kB / 0.9978 GB, free: 3.445 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003834/0.7774, allocations: 318.9 kB / 0.9981 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7774, allocations: 0 / 0.9981 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008769/0.7783, allocations: 247.6 kB / 0.9984 GB, free: 2.895 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005879/0.7789, allocations: 251.4 kB / 0.9986 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00126/0.7802, allocations: 491.5 kB / 0.9991 GB, free: 2.168 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7802, allocations: 3.938 kB / 0.9991 GB, free: 2.164 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004274/0.7806, allocations: 180.1 kB / 0.9992 GB, free: 1.988 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/0.7823, allocations: 263.5 kB / 0.9995 GB, free: 1.738 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.7841, allocations: 1.047 MB / 1.001 GB, free: 0.6484 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.7845, allocations: 0.8591 MB / 1.001 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.7847, allocations: 39.42 kB / 1.001 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/0.7847, allocations: 0 / 1.001 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of Templates: time 0.01548/0.8002, allocations: 10.19 MB / 1.011 GB, free: 5.625 MB / 0.7637 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches