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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 98.38 kB / 15.05 MB, free: 1.105 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.001462/0.001462, allocations: 177.3 kB / 15.94 MB, free: 228 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.495/1.495, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.995/2.995, allocations: 436.5 MB / 0.7104 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003828/0.0003834, allocations: 8 kB / 0.8707 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8724/0.8728, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.01903/0.8919, allocations: 17.41 MB / 1.038 GB, free: 15.66 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006616/0.8986, allocations: 4 MB / 1.042 GB, free: 11.65 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007047/0.8993, allocations: 15.88 kB / 1.042 GB, free: 11.64 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009664/0.9003, allocations: 254.7 kB / 1.042 GB, free: 11.39 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00282/0.9031, allocations: 0.8206 MB / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002357/0.9055, allocations: 0.7543 MB / 1.044 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001732/0.9072, allocations: 0.8474 MB / 1.044 GB, free: 8.98 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005996/0.9078, allocations: 347.7 kB / 1.045 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009303/0.9088, allocations: 470.5 kB / 1.045 GB, free: 8.18 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.9093, allocations: 322.7 kB / 1.045 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.305e-05/0.9094, allocations: 20 kB / 1.045 GB, free: 7.844 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.9104, allocations: 403.3 kB / 1.046 GB, free: 7.449 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.9106, allocations: 99.56 kB / 1.046 GB, free: 7.352 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.9107, allocations: 125.5 kB / 1.046 GB, free: 7.223 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006647/0.9114, allocations: 0.5162 MB / 1.047 GB, free: 6.707 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.9114, allocations: 0 / 1.047 GB, free: 6.707 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9114, allocations: 0 / 1.047 GB, free: 6.707 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.9114, allocations: 4 kB / 1.047 GB, free: 6.703 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.0015/0.9129, allocations: 0.8136 MB / 1.047 GB, free: 5.84 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.913, allocations: 11.98 kB / 1.047 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.9131, allocations: 67.25 kB / 1.047 GB, free: 5.762 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/0.9138, allocations: 430.9 kB / 1.048 GB, free: 5.301 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.9138, allocations: 28.66 kB / 1.048 GB, free: 5.273 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.9139, allocations: 32 kB / 1.048 GB, free: 5.242 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.9145, allocations: 321.9 kB / 1.048 GB, free: 4.918 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.9145, allocations: 0 / 1.048 GB, free: 4.918 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.42e-05/0.9146, allocations: 16 kB / 1.048 GB, free: 4.902 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.9146, allocations: 8 kB / 1.048 GB, free: 4.895 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006024/0.9152, allocations: 278.4 kB / 1.048 GB, free: 4.625 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.002177/0.9174, allocations: 1.345 MB / 1.05 GB, free: 3.16 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.918, allocations: 288.5 kB / 1.05 GB, free: 2.871 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005075/0.9186, allocations: 0.4987 MB / 1.051 GB, free: 2.262 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.9186, allocations: 38.48 kB / 1.051 GB, free: 2.215 MB / 0.795 GB Notification: Performance of pre-optimization done (n=25): time 1.463e-06/0.9186, allocations: 4 kB / 1.051 GB, free: 2.211 MB / 0.795 GB Notification: Performance of matching and sorting (n=25): time 0.001739/0.9203, allocations: 0.5872 MB / 1.051 GB, free: 1.598 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.9204, allocations: 51.41 kB / 1.051 GB, free: 1.535 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/0.921, allocations: 458.2 kB / 1.052 GB, free: 1.078 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.921, allocations: 37.7 kB / 1.052 GB, free: 1.035 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.9212, allocations: 248.6 kB / 1.052 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.306e-05/0.9213, allocations: 82.75 kB / 1.052 GB, free: 0.707 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/0.9213, allocations: 11.94 kB / 1.052 GB, free: 0.6953 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.9215, allocations: 358.8 kB / 1.052 GB, free: 344 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.9218, allocations: 123.8 kB / 1.052 GB, free: 220 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/0.9222, allocations: 193 kB / 1.053 GB, free: 8 kB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.9225, allocations: 147.7 kB / 1.053 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.9225, allocations: 0 / 1.053 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009797/0.9235, allocations: 426.4 kB / 1.053 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.9237, allocations: 271 kB / 1.053 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.9237, allocations: 0 / 1.053 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.9241, allocations: 52.75 kB / 1.054 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.9244, allocations: 83.83 kB / 1.054 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005053/0.9249, allocations: 0.564 MB / 1.054 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.9254, allocations: 67.7 kB / 1.054 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/0.9255, allocations: 15.98 kB / 1.054 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.9255, allocations: 4 kB / 1.054 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007076/0.9262, allocations: 321.8 kB / 1.055 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-06/0.9262, allocations: 0 / 1.055 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-06/0.9263, allocations: 0 / 1.055 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.9266, allocations: 87.89 kB / 1.055 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.9266, allocations: 4 kB / 1.055 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.9271, allocations: 67.62 kB / 1.055 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.9271, allocations: 12 kB / 1.055 GB, free: 13.86 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.000275/0.9274, allocations: 250.4 kB / 1.055 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/0.9275, allocations: 43.44 kB / 1.055 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009685/0.9284, allocations: 452 kB / 1.055 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.9285, allocations: 4 kB / 1.055 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.9285, allocations: 0 / 1.055 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.9285, allocations: 7.938 kB / 1.055 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.9301, allocations: 0.967 MB / 1.056 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.9301, allocations: 4 kB / 1.056 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.9303, allocations: 55.91 kB / 1.056 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.9305, allocations: 36.83 kB / 1.056 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.9305, allocations: 11.95 kB / 1.056 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003971/0.9309, allocations: 0.5643 MB / 1.057 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.931, allocations: 0 / 1.057 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008415/0.9318, allocations: 0.5565 MB / 1.058 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.932, allocations: 160.3 kB / 1.058 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.9321, allocations: 8 kB / 1.058 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.9324, allocations: 47.91 kB / 1.058 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.9325, allocations: 19.91 kB / 1.058 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.9326, allocations: 12 kB / 1.058 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000388/0.933, allocations: 318.9 kB / 1.058 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.41e-07/0.933, allocations: 0 / 1.058 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007778/0.9338, allocations: 259.5 kB / 1.058 GB, free: 9.926 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.0005587/0.9343, allocations: 253.6 kB / 1.059 GB, free: 9.676 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.9355, allocations: 475.4 kB / 1.059 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.9355, allocations: 0 / 1.059 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003905/0.9359, allocations: 179.8 kB / 1.059 GB, free: 9.035 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.9372, allocations: 247.9 kB / 1.059 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.9388, allocations: 0.9743 MB / 1.06 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.9393, allocations: 0.8669 MB / 1.061 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004485/0.9398, allocations: 120.5 kB / 1.061 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.9399, allocations: 43.42 kB / 1.061 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of SimCode: time 6.91e-07/0.9399, allocations: 0 / 1.061 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of Templates: time 0.01796/0.9578, allocations: 9.57 MB / 1.071 GB, free: 13.32 MB / 0.8262 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