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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.975/1.975, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 185.5 kB / 490.8 MB, free: 11.2 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.257/1.257, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001042, allocations: 99.12 kB / 0.9264 GB, free: 4.531 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 8.746e-06/8.766e-06, allocations: 4 kB / 1.072 GB, free: 15.56 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6729/0.6729, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8216/1.495, allocations: 390.6 MB / 1.593 GB, free: 279.8 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/1.495, allocations: 84.14 kB / 1.593 GB, free: 279.7 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.4683/1.963, allocations: 256 MB / 1.843 GB, free: 23.1 MB / 1.026 GB Notification: Performance of Transformations before backend: time 6.471e-05/1.963, allocations: 16 kB / 1.843 GB, free: 23.08 MB / 1.026 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.001745/1.965, allocations: 0.837 MB / 1.844 GB, free: 22.2 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/1.965, allocations: 8.031 kB / 1.844 GB, free: 22.19 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/1.965, allocations: 67.23 kB / 1.844 GB, free: 22.12 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009054/1.966, allocations: 463.5 kB / 1.844 GB, free: 21.62 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/1.966, allocations: 8 kB / 1.844 GB, free: 21.62 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-05/1.966, allocations: 24 kB / 1.844 GB, free: 21.59 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004122/1.967, allocations: 189.3 kB / 1.845 GB, free: 21.41 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/1.967, allocations: 236.8 kB / 1.845 GB, free: 21.17 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/1.967, allocations: 0 / 1.845 GB, free: 21.17 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/1.967, allocations: 3.984 kB / 1.845 GB, free: 21.17 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/1.967, allocations: 8 kB / 1.845 GB, free: 21.16 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/1.969, allocations: 1.229 MB / 1.846 GB, free: 19.84 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/1.969, allocations: 246.3 kB / 1.846 GB, free: 19.59 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/1.97, allocations: 104.8 kB / 1.846 GB, free: 19.48 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/1.97, allocations: 0.4947 MB / 1.847 GB, free: 18.88 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/1.97, allocations: 34.56 kB / 1.847 GB, free: 18.83 MB / 1.026 GB Notification: Performance of pre-optimization done (n=25): time 2.104e-06/1.97, allocations: 0 / 1.847 GB, free: 18.83 MB / 1.026 GB Notification: Performance of matching and sorting (n=25): time 0.0007469/1.971, allocations: 270.3 kB / 1.847 GB, free: 18.56 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/1.971, allocations: 59.41 kB / 1.847 GB, free: 18.49 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/1.971, allocations: 353.2 kB / 1.848 GB, free: 18.14 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/1.971, allocations: 25.7 kB / 1.848 GB, free: 18.11 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 7.872e-05/1.971, allocations: 184.6 kB / 1.848 GB, free: 17.92 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/1.971, allocations: 78.75 kB / 1.848 GB, free: 17.84 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.695e-05/1.971, allocations: 0 / 1.848 GB, free: 17.84 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 7.943e-05/1.971, allocations: 358.8 kB / 1.848 GB, free: 17.48 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/1.972, allocations: 79.73 kB / 1.848 GB, free: 17.4 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/1.972, allocations: 174.5 kB / 1.848 GB, free: 17.19 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/1.972, allocations: 112.8 kB / 1.849 GB, free: 17.08 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.972, allocations: 0 / 1.849 GB, free: 17.08 MB / 1.026 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007069/1.973, allocations: 348.3 kB / 1.849 GB, free: 16.74 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 6.574e-05/1.973, allocations: 269.7 kB / 1.849 GB, free: 16.46 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.973, allocations: 4 kB / 1.849 GB, free: 16.45 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/1.973, allocations: 40.84 kB / 1.849 GB, free: 16.41 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/1.973, allocations: 75.88 kB / 1.849 GB, free: 16.34 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003602/1.974, allocations: 0.5757 MB / 1.85 GB, free: 15.73 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005418/1.974, allocations: 63.75 kB / 1.85 GB, free: 15.67 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/1.974, allocations: 19.98 kB / 1.85 GB, free: 15.65 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 7.164e-06/1.974, allocations: 3.938 kB / 1.85 GB, free: 15.64 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004611/1.975, allocations: 215.9 kB / 1.85 GB, free: 15.43 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/1.975, allocations: 4 kB / 1.85 GB, free: 15.43 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.877e-06/1.975, allocations: 3.938 kB / 1.85 GB, free: 15.43 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/1.975, allocations: 95.88 kB / 1.85 GB, free: 15.33 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/1.975, allocations: 3.938 kB / 1.85 GB, free: 15.33 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/1.976, allocations: 63.69 kB / 1.85 GB, free: 15.27 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/1.976, allocations: 12 kB / 1.85 GB, free: 15.25 MB / 1.026 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real 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 () * 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.0001303/1.976, allocations: 117.1 kB / 1.85 GB, free: 15.13 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/1.976, allocations: 55.27 kB / 1.85 GB, free: 15.08 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000717/1.977, allocations: 343.8 kB / 1.851 GB, free: 14.73 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/1.977, allocations: 7.984 kB / 1.851 GB, free: 14.73 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.977, allocations: 0 / 1.851 GB, free: 14.73 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/1.977, allocations: 4 kB / 1.851 GB, free: 14.72 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/1.978, allocations: 0.8211 MB / 1.852 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/1.978, allocations: 0 / 1.852 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/1.978, allocations: 60.03 kB / 1.852 GB, free: 13.79 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001641/1.978, allocations: 36.83 kB / 1.852 GB, free: 13.75 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/1.979, allocations: 4 kB / 1.852 GB, free: 13.74 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002477/1.979, allocations: 0.5679 MB / 1.852 GB, free: 13.15 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.979, allocations: 0 / 1.852 GB, free: 13.15 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005337/1.979, allocations: 471.6 kB / 1.853 GB, free: 12.63 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/1.98, allocations: 156.3 kB / 1.853 GB, free: 12.46 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.647e-05/1.98, allocations: 4 kB / 1.853 GB, free: 12.46 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004202/1.98, allocations: 47.84 kB / 1.853 GB, free: 12.41 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/1.98, allocations: 19.97 kB / 1.853 GB, free: 12.39 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/1.98, allocations: 12 kB / 1.853 GB, free: 12.38 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.0002343/1.98, allocations: 275 kB / 1.853 GB, free: 12.11 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0008529/1.981, allocations: 263.5 kB / 1.853 GB, free: 11.86 MB / 1.026 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 () * 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.0006571/1.982, allocations: 373.5 kB / 1.854 GB, free: 11.49 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.0007341/1.983, allocations: 390 kB / 1.854 GB, free: 11.11 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.983, allocations: 0 / 1.854 GB, free: 11.11 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/1.983, allocations: 139.8 kB / 1.854 GB, free: 10.97 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/1.984, allocations: 227.8 kB / 1.855 GB, free: 10.75 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/1.985, allocations: 0.5898 MB / 1.855 GB, free: 10.12 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/1.986, allocations: 0.9176 MB / 1.856 GB, free: 9.18 MB / 1.026 GB Notification: Performance of SimCode: time 1.122e-06/1.986, allocations: 0 / 1.856 GB, free: 9.18 MB / 1.026 GB Notification: Performance of Templates: time 0.01892/2.005, allocations: 11.34 MB / 1.867 GB, free: 13.98 MB / 1.042 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