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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.000886/0.000886, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009042/0.009042, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.463/1.463, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.737/2.737, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.000407, allocations: 12 kB / 0.8728 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9341/0.9345, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02119/0.9558, allocations: 20.07 MB / 1.043 GB, free: 11.71 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007214/0.963, allocations: 4.925 MB / 1.047 GB, free: 6.773 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007965/0.9639, allocations: 15.88 kB / 1.047 GB, free: 6.758 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.9647, allocations: 218.6 kB / 1.048 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002358/0.9671, allocations: 0.7464 MB / 1.048 GB, free: 5.793 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.9691, allocations: 0.6434 MB / 1.049 GB, free: 5.156 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002398/0.9715, allocations: 1.812 MB / 1.051 GB, free: 3.332 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000607/0.9721, allocations: 378 kB / 1.051 GB, free: 2.965 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.9732, allocations: 0.5095 MB / 1.052 GB, free: 2.453 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006607/0.9738, allocations: 457.9 kB / 1.052 GB, free: 2.004 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.9739, allocations: 20 kB / 1.052 GB, free: 1.984 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.9753, allocations: 0.6004 MB / 1.053 GB, free: 1.383 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.9754, allocations: 103.5 kB / 1.053 GB, free: 1.281 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.9757, allocations: 288.2 kB / 1.053 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.9768, allocations: 0.8137 MB / 1.054 GB, free: 180 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.9768, allocations: 0 / 1.054 GB, free: 180 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9768, allocations: 0 / 1.054 GB, free: 180 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.9768, allocations: 0 / 1.054 GB, free: 180 kB / 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.001622/0.9784, allocations: 0.8294 MB / 1.055 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.9785, allocations: 15.97 kB / 1.055 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.9786, allocations: 64.19 kB / 1.055 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007004/0.9793, allocations: 451 kB / 1.055 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.9794, allocations: 24.66 kB / 1.055 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.9794, allocations: 36 kB / 1.055 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007146/0.9802, allocations: 321.9 kB / 1.056 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.9802, allocations: 0 / 1.056 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.08e-05/0.9802, allocations: 16 kB / 1.056 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.9803, allocations: 4 kB / 1.056 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006439/0.9809, allocations: 282.4 kB / 1.056 GB, free: 14.06 MB / 0.8106 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.002305/0.9832, allocations: 1.356 MB / 1.057 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.9838, allocations: 272.8 kB / 1.057 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.9841, allocations: 148.8 kB / 1.058 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004746/0.9846, allocations: 0.4947 MB / 1.058 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.9846, allocations: 30.56 kB / 1.058 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 2.655e-06/0.9846, allocations: 0 / 1.058 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001792/0.9864, allocations: 0.6011 MB / 1.059 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.9865, allocations: 55.41 kB / 1.059 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005167/0.987, allocations: 470 kB / 1.059 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.987, allocations: 33.7 kB / 1.059 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.9873, allocations: 244.5 kB / 1.059 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.847e-05/0.9874, allocations: 86.75 kB / 1.059 GB, free: 9.992 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.9874, allocations: 33.7 kB / 1.06 GB, free: 9.953 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.9876, allocations: 358.8 kB / 1.06 GB, free: 9.594 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.9879, allocations: 123.9 kB / 1.06 GB, free: 9.473 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.9883, allocations: 193 kB / 1.06 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.9889, allocations: 294.1 kB / 1.06 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.9889, allocations: 7.938 kB / 1.06 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00155/0.9905, allocations: 0.4938 MB / 1.061 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.666e-05/0.9906, allocations: 110.7 kB / 1.061 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.9906, allocations: 0 / 1.061 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.991, allocations: 56.81 kB / 1.061 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.9914, allocations: 71.89 kB / 1.061 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004762/0.9919, allocations: 0.5717 MB / 1.062 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.9924, allocations: 67.67 kB / 1.062 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.9925, allocations: 12.06 kB / 1.062 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.865e-06/0.9925, allocations: 4 kB / 1.062 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007152/0.9932, allocations: 334.1 kB / 1.062 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.9932, allocations: 0 / 1.062 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.106e-06/0.9932, allocations: 0 / 1.062 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.9936, allocations: 83.88 kB / 1.062 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.9936, allocations: 8.062 kB / 1.062 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004492/0.9941, allocations: 67.64 kB / 1.062 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.794e-05/0.9941, allocations: 11.98 kB / 1.062 GB, free: 7.039 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 (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.0002993/0.9944, allocations: 253 kB / 1.063 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.655e-05/0.9945, allocations: 43.58 kB / 1.063 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.9956, allocations: 447.8 kB / 1.063 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.9956, allocations: 8 kB / 1.063 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.9956, allocations: 0 / 1.063 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.9956, allocations: 3.938 kB / 1.063 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.9973, allocations: 0.9552 MB / 1.064 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.9973, allocations: 4 kB / 1.064 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.9975, allocations: 67.95 kB / 1.064 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001962/0.9977, allocations: 40.84 kB / 1.064 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.9978, allocations: 8 kB / 1.064 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004468/0.9982, allocations: 0.5602 MB / 1.065 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.9982, allocations: 4.062 kB / 1.065 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.9992, allocations: 0.5105 MB / 1.065 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.9994, allocations: 160.5 kB / 1.065 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.026e-05/0.9995, allocations: 4 kB / 1.065 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.9998, allocations: 47.81 kB / 1.065 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.9999, allocations: 27.91 kB / 1.065 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/1, allocations: 15.98 kB / 1.065 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003985/1, allocations: 322.9 kB / 1.066 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.824e-06/1, allocations: 3.938 kB / 1.066 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0009001/1.001, allocations: 251.5 kB / 1.066 GB, free: 3.164 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 (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.000678/1.002, allocations: 240.6 kB / 1.066 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001306/1.003, allocations: 493.2 kB / 1.067 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.003, allocations: 0 / 1.067 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004371/1.004, allocations: 187.9 kB / 1.067 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/1.005, allocations: 247.7 kB / 1.067 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/1.007, allocations: 1.024 MB / 1.068 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/1.008, allocations: 0.8591 MB / 1.069 GB, free: 72 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005074/1.008, allocations: 116.3 kB / 1.069 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/1.008, allocations: 43.36 kB / 1.069 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of SimCode: time 7.22e-07/1.008, allocations: 0 / 1.069 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.01981/1.028, allocations: 9.878 MB / 1.079 GB, free: 6.203 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