Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.389/1.389, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 185.4 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009028/0.0009031, allocations: 92.94 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.000348, allocations: 12.91 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2376, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9196/1.157, allocations: 371.2 MB / 1.263 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/1.158, allocations: 89.59 kB / 1.263 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.007/2.164, allocations: 245.4 MB / 1.502 GB, free: 253.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.743e-06/2.164, allocations: 0 / 1.502 GB, free: 253.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.145e-05/2.164, allocations: 19.05 kB / 1.502 GB, free: 253.6 MB / 0.8855 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.002324/2.167, allocations: 0.9307 MB / 1.503 GB, free: 252.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/2.167, allocations: 11.97 kB / 1.503 GB, free: 252.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/2.167, allocations: 67.72 kB / 1.503 GB, free: 252.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/2.168, allocations: 475.2 kB / 1.504 GB, free: 252 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/2.168, allocations: 32.66 kB / 1.504 GB, free: 252 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.047e-05/2.168, allocations: 36 kB / 1.504 GB, free: 252 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/2.169, allocations: 302 kB / 1.504 GB, free: 251.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/2.169, allocations: 0 / 1.504 GB, free: 251.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/2.169, allocations: 12 kB / 1.504 GB, free: 251.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/2.169, allocations: 8 kB / 1.504 GB, free: 251.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000574/2.17, allocations: 274.4 kB / 1.504 GB, free: 251.4 MB / 0.8855 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.002194/2.172, allocations: 1.323 MB / 1.506 GB, free: 250 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/2.172, allocations: 288.6 kB / 1.506 GB, free: 249.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003586/2.173, allocations: 0.4976 MB / 1.506 GB, free: 249.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/2.173, allocations: 34.56 kB / 1.507 GB, free: 249 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/2.173, allocations: 0 / 1.507 GB, free: 249 MB / 0.8855 GB Notification: Performance of matching and sorting (n=25): time 0.001684/2.175, allocations: 0.5709 MB / 1.507 GB, free: 248.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/2.175, allocations: 59.3 kB / 1.507 GB, free: 248.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/2.175, allocations: 413.2 kB / 1.508 GB, free: 247.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/2.175, allocations: 29.7 kB / 1.508 GB, free: 247.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/2.175, allocations: 240.7 kB / 1.508 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/2.175, allocations: 89.25 kB / 1.508 GB, free: 247.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/2.175, allocations: 8 kB / 1.508 GB, free: 247.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.459e-05/2.175, allocations: 358.8 kB / 1.508 GB, free: 247.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/2.176, allocations: 115.9 kB / 1.508 GB, free: 247.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/2.176, allocations: 228.1 kB / 1.509 GB, free: 246.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/2.176, allocations: 146.6 kB / 1.509 GB, free: 246.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/2.176, allocations: 3.938 kB / 1.509 GB, free: 246.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008137/2.177, allocations: 419.7 kB / 1.509 GB, free: 246.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.953e-05/2.177, allocations: 267 kB / 1.509 GB, free: 246 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/2.177, allocations: 4 kB / 1.509 GB, free: 246 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/2.178, allocations: 44.77 kB / 1.509 GB, free: 245.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/2.178, allocations: 71.95 kB / 1.509 GB, free: 245.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003319/2.178, allocations: 0.5601 MB / 1.51 GB, free: 245.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005669/2.179, allocations: 87.52 kB / 1.51 GB, free: 245.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/2.179, allocations: 12 kB / 1.51 GB, free: 245.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/2.179, allocations: 7.984 kB / 1.51 GB, free: 245.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005945/2.179, allocations: 303.7 kB / 1.51 GB, free: 244.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-06/2.179, allocations: 0 / 1.51 GB, free: 244.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.817e-06/2.18, allocations: 8 kB / 1.51 GB, free: 244.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/2.18, allocations: 87.88 kB / 1.51 GB, free: 244.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/2.18, allocations: 0 / 1.51 GB, free: 244.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/2.18, allocations: 63.78 kB / 1.511 GB, free: 244.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/2.18, allocations: 16 kB / 1.511 GB, free: 244.7 MB / 0.8855 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.0002368/2.181, allocations: 249 kB / 1.511 GB, free: 244.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/2.181, allocations: 55.28 kB / 1.511 GB, free: 244.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008058/2.181, allocations: 437 kB / 1.511 GB, free: 244 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/2.182, allocations: 11.97 kB / 1.511 GB, free: 244 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/2.182, allocations: 0 / 1.511 GB, free: 244 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/2.182, allocations: 0 / 1.511 GB, free: 244 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/2.183, allocations: 0.9527 MB / 1.512 GB, free: 242.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/2.183, allocations: 4 kB / 1.512 GB, free: 242.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/2.183, allocations: 55.91 kB / 1.512 GB, free: 242.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001543/2.183, allocations: 44.33 kB / 1.512 GB, free: 242.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/2.183, allocations: 11.98 kB / 1.512 GB, free: 242.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002377/2.183, allocations: 0.5601 MB / 1.513 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/2.183, allocations: 3.938 kB / 1.513 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000648/2.184, allocations: 0.5413 MB / 1.513 GB, free: 241.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/2.184, allocations: 156.4 kB / 1.514 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.675e-05/2.184, allocations: 12 kB / 1.514 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/2.185, allocations: 43.86 kB / 1.514 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/2.185, allocations: 27.91 kB / 1.514 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/2.185, allocations: 12 kB / 1.514 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002886/2.185, allocations: 318.8 kB / 1.514 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/2.185, allocations: 0 / 1.514 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008727/2.186, allocations: 283.6 kB / 1.514 GB, free: 240.8 MB / 0.8855 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.0006766/2.187, allocations: 365 kB / 1.515 GB, free: 240.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001078/2.188, allocations: 478.3 kB / 1.515 GB, free: 240 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/2.188, allocations: 4 kB / 1.515 GB, free: 240 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003341/2.188, allocations: 176.7 kB / 1.515 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/2.189, allocations: 253.1 kB / 1.515 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/2.191, allocations: 0.9713 MB / 1.516 GB, free: 238.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/2.191, allocations: 0.8708 MB / 1.517 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0004212/2.191, allocations: 108.3 kB / 1.517 GB, free: 237.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.055e-05/2.191, allocations: 43.42 kB / 1.517 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.713e-06/2.191, allocations: 4 kB / 1.517 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.01618/2.208, allocations: 11.03 MB / 1.528 GB, free: 226.7 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches