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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01095/0.01095, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.002311/0.002312, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.626/2.626, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 63.91 kB / 1.054 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9725/0.974, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02498/0.999, allocations: 20.75 MB / 1.228 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007528/1.007, allocations: 4.932 MB / 1.233 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009337/1.008, allocations: 19.88 kB / 1.233 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001046/1.009, allocations: 282 kB / 1.233 GB, free: 3.555 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003066/1.012, allocations: 0.8551 MB / 1.234 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002304/1.014, allocations: 0.7114 MB / 1.235 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002172/1.016, allocations: 1.384 MB / 1.236 GB, free: 0.6016 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000936/1.017, allocations: 436.3 kB / 1.236 GB, free: 180 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/1.019, allocations: 0.5876 MB / 1.237 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009066/1.02, allocations: 450.1 kB / 1.237 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001503/1.02, allocations: 40 kB / 1.237 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/1.021, allocations: 0.6316 MB / 1.238 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002318/1.022, allocations: 119.5 kB / 1.238 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004776/1.022, allocations: 294.5 kB / 1.238 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001706/1.024, allocations: 0.843 MB / 1.239 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/1.024, allocations: 4 kB / 1.239 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.945e-06/1.024, allocations: 0 / 1.239 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.778e-05/1.024, allocations: 0 / 1.239 GB, free: 13.22 MB / 0.9669 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.002661/1.026, allocations: 0.9264 MB / 1.24 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001001/1.027, allocations: 8.031 kB / 1.24 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/1.027, allocations: 68.17 kB / 1.24 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/1.028, allocations: 475.3 kB / 1.241 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/1.028, allocations: 24.66 kB / 1.241 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.412e-05/1.028, allocations: 36 kB / 1.241 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000889/1.029, allocations: 314 kB / 1.241 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/1.029, allocations: 0 / 1.241 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/1.029, allocations: 8 kB / 1.241 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/1.029, allocations: 8 kB / 1.241 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007112/1.03, allocations: 258.4 kB / 1.241 GB, free: 11.02 MB / 0.9669 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.003042/1.033, allocations: 1.329 MB / 1.243 GB, free: 9.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/1.034, allocations: 254.4 kB / 1.243 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/1.034, allocations: 144.7 kB / 1.243 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006257/1.035, allocations: 0.4986 MB / 1.243 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/1.035, allocations: 38.5 kB / 1.244 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 2.354e-06/1.035, allocations: 0 / 1.244 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001927/1.037, allocations: 0.57 MB / 1.244 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/1.037, allocations: 51.41 kB / 1.244 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006246/1.037, allocations: 466.1 kB / 1.245 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/1.037, allocations: 33.7 kB / 1.245 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/1.038, allocations: 240.5 kB / 1.245 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.539e-05/1.038, allocations: 94.89 kB / 1.245 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/1.038, allocations: 77.44 kB / 1.245 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001624/1.038, allocations: 362.7 kB / 1.245 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/1.038, allocations: 120.8 kB / 1.245 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003981/1.039, allocations: 186.6 kB / 1.246 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/1.04, allocations: 270.4 kB / 1.246 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.04, allocations: 0 / 1.246 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001599/1.041, allocations: 0.4922 MB / 1.246 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.041, allocations: 8 kB / 1.246 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.041, allocations: 0 / 1.246 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003805/1.042, allocations: 52.75 kB / 1.246 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/1.042, allocations: 71.89 kB / 1.247 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004723/1.042, allocations: 0.5679 MB / 1.247 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/1.043, allocations: 43.72 kB / 1.247 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.8e-05/1.043, allocations: 15.98 kB / 1.247 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00044/1.043, allocations: 236 kB / 1.247 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003551/1.044, allocations: 181.5 kB / 1.248 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005949/1.044, allocations: 260.2 kB / 1.248 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/1.044, allocations: 0 / 1.248 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0008317/1.045, allocations: 372.8 kB / 1.248 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/1.045, allocations: 4 kB / 1.248 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/1.045, allocations: 160 / 1.248 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.783e-06/1.045, allocations: 7.938 kB / 1.248 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/1.046, allocations: 79.81 kB / 1.248 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/1.046, allocations: 7.984 kB / 1.248 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/1.046, allocations: 51.8 kB / 1.248 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/1.046, allocations: 12 kB / 1.248 GB, free: 3.477 MB / 0.9669 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.0001683/1.046, allocations: 200.1 kB / 1.248 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/1.047, allocations: 43.44 kB / 1.249 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/1.048, allocations: 432.4 kB / 1.249 GB, free: 2.789 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/1.048, allocations: 4 kB / 1.249 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/1.048, allocations: 4 kB / 1.249 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.048, allocations: 0 / 1.249 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/1.049, allocations: 0.9433 MB / 1.25 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/1.049, allocations: 4 kB / 1.25 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/1.05, allocations: 55.89 kB / 1.25 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/1.05, allocations: 36.97 kB / 1.25 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/1.05, allocations: 8 kB / 1.25 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003919/1.05, allocations: 0.5641 MB / 1.25 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/1.05, allocations: 7.875 kB / 1.251 GB, free: 1.062 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008711/1.051, allocations: 494.9 kB / 1.251 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/1.051, allocations: 152.4 kB / 1.251 GB, free: 388 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/1.051, allocations: 8 kB / 1.251 GB, free: 380 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/1.052, allocations: 23.97 kB / 1.251 GB, free: 356 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.834e-05/1.052, allocations: 31.84 kB / 1.251 GB, free: 324 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/1.052, allocations: 19.92 kB / 1.251 GB, free: 304 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003942/1.052, allocations: 319 kB / 1.252 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.21e-07/1.052, allocations: 0 / 1.252 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008772/1.053, allocations: 251.5 kB / 1.252 GB, free: 15.74 MB / 0.9825 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.0006863/1.054, allocations: 253.7 kB / 1.252 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001335/1.055, allocations: 466.6 kB / 1.252 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/1.055, allocations: 0 / 1.252 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004519/1.056, allocations: 167.8 kB / 1.253 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/1.057, allocations: 219.6 kB / 1.253 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/1.058, allocations: 0.8232 MB / 1.254 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/1.059, allocations: 0.8549 MB / 1.254 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004283/1.059, allocations: 120 kB / 1.255 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/1.06, allocations: 43.42 kB / 1.255 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of SimCode: time 1.112e-06/1.06, allocations: 3.938 kB / 1.255 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of Templates: time 0.02003/1.08, allocations: 10.17 MB / 1.265 GB, free: 2.738 MB / 0.9825 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches