Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009632/0.0009634, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001087, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.792/2.792, allocations: 437.8 MB / 0.7117 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005137/0.0005137, allocations: 12 kB / 0.8722 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9544/0.9549, allocations: 153.8 MB / 1.022 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01924/0.9742, allocations: 19.03 MB / 1.041 GB, free: 12.94 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00738/0.9816, allocations: 4.651 MB / 1.046 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006954/0.9824, allocations: 15.88 kB / 1.046 GB, free: 8.262 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008/0.9832, allocations: 190.7 kB / 1.046 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.9851, allocations: 0.6549 MB / 1.046 GB, free: 7.418 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.9869, allocations: 0.602 MB / 1.047 GB, free: 6.824 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00178/0.9887, allocations: 1.555 MB / 1.048 GB, free: 5.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005187/0.9893, allocations: 338.8 kB / 1.049 GB, free: 4.926 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008343/0.9901, allocations: 0.5017 MB / 1.049 GB, free: 4.422 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005886/0.9907, allocations: 426.2 kB / 1.05 GB, free: 4.004 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.1e-05/0.9908, allocations: 20 kB / 1.05 GB, free: 3.984 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.9919, allocations: 0.5184 MB / 1.05 GB, free: 3.465 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.9921, allocations: 103.5 kB / 1.05 GB, free: 3.363 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.9922, allocations: 125.5 kB / 1.05 GB, free: 3.234 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007548/0.993, allocations: 0.563 MB / 1.051 GB, free: 2.672 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.993, allocations: 0 / 1.051 GB, free: 2.672 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.544e-06/0.993, allocations: 4 kB / 1.051 GB, free: 2.668 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.993, allocations: 4 kB / 1.051 GB, free: 2.664 MB / 0.795 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.001495/0.9945, allocations: 0.8291 MB / 1.052 GB, free: 1.785 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.9946, allocations: 12.03 kB / 1.052 GB, free: 1.773 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.9947, allocations: 63.25 kB / 1.052 GB, free: 1.711 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.9953, allocations: 431 kB / 1.052 GB, free: 1.25 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.9954, allocations: 24.66 kB / 1.052 GB, free: 1.227 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.9954, allocations: 32 kB / 1.052 GB, free: 1.195 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006544/0.9961, allocations: 321.9 kB / 1.053 GB, free: 0.875 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.9961, allocations: 0 / 1.053 GB, free: 0.875 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.9962, allocations: 19.94 kB / 1.053 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.9962, allocations: 8 kB / 1.053 GB, free: 0.8477 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005953/0.9968, allocations: 274.4 kB / 1.053 GB, free: 0.5781 MB / 0.795 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.002154/0.9989, allocations: 1.356 MB / 1.054 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/0.9994, allocations: 265 kB / 1.054 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.9997, allocations: 148.7 kB / 1.055 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005729/1, allocations: 0.5025 MB / 1.055 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1, allocations: 34.59 kB / 1.055 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/1, allocations: 4 kB / 1.055 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001707/1.002, allocations: 0.5828 MB / 1.056 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/1.002, allocations: 59.41 kB / 1.056 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/1.003, allocations: 458.1 kB / 1.056 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/1.003, allocations: 33.7 kB / 1.056 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/1.003, allocations: 244.5 kB / 1.056 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.384e-05/1.003, allocations: 86.73 kB / 1.057 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.977e-05/1.003, allocations: 8 kB / 1.057 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001823/1.003, allocations: 354.8 kB / 1.057 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/1.004, allocations: 123.9 kB / 1.057 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003695/1.004, allocations: 193.2 kB / 1.057 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000452/1.004, allocations: 133.8 kB / 1.057 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.004, allocations: 0 / 1.057 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009496/1.005, allocations: 441.8 kB / 1.058 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/1.005, allocations: 99.97 kB / 1.058 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/1.005, allocations: 7.938 kB / 1.058 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/1.006, allocations: 60.75 kB / 1.058 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/1.006, allocations: 71.94 kB / 1.058 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004957/1.007, allocations: 0.5601 MB / 1.059 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/1.007, allocations: 67.73 kB / 1.059 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/1.007, allocations: 15.98 kB / 1.059 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/1.007, allocations: 4 kB / 1.059 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007052/1.008, allocations: 315.7 kB / 1.059 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-06/1.008, allocations: 3.938 kB / 1.059 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/1.008, allocations: 8 kB / 1.059 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/1.008, allocations: 88.02 kB / 1.059 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/1.008, allocations: 0 / 1.059 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003662/1.009, allocations: 63.64 kB / 1.059 GB, free: 9.871 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/1.009, allocations: 16 kB / 1.059 GB, free: 9.855 MB / 0.8106 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.00025/1.009, allocations: 249 kB / 1.059 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.501e-05/1.009, allocations: 55.33 kB / 1.059 GB, free: 9.547 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000919/1.01, allocations: 444.2 kB / 1.06 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/1.01, allocations: 4 kB / 1.06 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/1.01, allocations: 0 / 1.06 GB, free: 9.098 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/1.01, allocations: 3.984 kB / 1.06 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/1.012, allocations: 0.9641 MB / 1.061 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/1.012, allocations: 0 / 1.061 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/1.012, allocations: 51.91 kB / 1.061 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001707/1.012, allocations: 48.95 kB / 1.061 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/1.012, allocations: 11.98 kB / 1.061 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003715/1.012, allocations: 0.5562 MB / 1.061 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.012, allocations: 4.031 kB / 1.061 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007699/1.013, allocations: 0.4998 MB / 1.062 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/1.013, allocations: 160.3 kB / 1.062 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.673e-05/1.013, allocations: 4 kB / 1.062 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/1.014, allocations: 51.84 kB / 1.062 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/1.014, allocations: 27.91 kB / 1.062 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/1.014, allocations: 8 kB / 1.062 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000329/1.014, allocations: 318.9 kB / 1.062 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.9e-07/1.014, allocations: 0 / 1.062 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007922/1.015, allocations: 259.5 kB / 1.063 GB, free: 6 MB / 0.8106 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.0006315/1.016, allocations: 247.2 kB / 1.063 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001131/1.017, allocations: 489.2 kB / 1.063 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/1.017, allocations: 0 / 1.063 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003862/1.017, allocations: 177.6 kB / 1.064 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/1.019, allocations: 264.6 kB / 1.064 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/1.02, allocations: 0.9779 MB / 1.065 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/1.021, allocations: 0.863 MB / 1.066 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004162/1.021, allocations: 120.2 kB / 1.066 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.752e-05/1.021, allocations: 43.36 kB / 1.066 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/1.021, allocations: 0 / 1.066 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of Templates: time 0.01793/1.039, allocations: 9.577 MB / 1.075 GB, free: 9.371 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches