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.007495/0.007495, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001684/0.001684, allocations: 196.9 kB / 16.67 MB, free: 5.926 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.525/1.525, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.755/2.755, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 71.89 kB / 1.054 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02/1.021, 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.0224/1.044, allocations: 20.75 MB / 1.228 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007648/1.052, allocations: 4.933 MB / 1.233 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008654/1.053, allocations: 15.88 kB / 1.233 GB, free: 3.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008939/1.053, allocations: 278 kB / 1.233 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002572/1.056, allocations: 0.8161 MB / 1.234 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002159/1.058, allocations: 0.721 MB / 1.235 GB, free: 2.035 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002509/1.061, allocations: 1.384 MB / 1.236 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007399/1.062, allocations: 432.3 kB / 1.236 GB, free: 228 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/1.063, allocations: 0.5914 MB / 1.237 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006368/1.063, allocations: 442.2 kB / 1.237 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/1.064, allocations: 36 kB / 1.237 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/1.065, allocations: 0.6316 MB / 1.238 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001381/1.065, allocations: 135.4 kB / 1.238 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002996/1.065, allocations: 286.5 kB / 1.238 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00125/1.067, allocations: 0.843 MB / 1.239 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/1.067, allocations: 0 / 1.239 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.144e-06/1.067, allocations: 0 / 1.239 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.424e-05/1.067, allocations: 0 / 1.239 GB, free: 13.27 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.001734/1.068, allocations: 0.9303 MB / 1.24 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/1.068, allocations: 12.03 kB / 1.24 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/1.069, allocations: 64.19 kB / 1.24 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008214/1.069, allocations: 475.3 kB / 1.241 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/1.069, allocations: 28.66 kB / 1.241 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/1.07, allocations: 32 kB / 1.241 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006769/1.07, allocations: 306 kB / 1.241 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.07, allocations: 0 / 1.241 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/1.07, allocations: 16 kB / 1.241 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/1.07, allocations: 8 kB / 1.241 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/1.071, allocations: 262.4 kB / 1.241 GB, free: 11.07 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.002214/1.073, allocations: 1.337 MB / 1.243 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/1.074, allocations: 258.4 kB / 1.243 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/1.074, allocations: 136.7 kB / 1.243 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004607/1.075, allocations: 0.4947 MB / 1.243 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/1.075, allocations: 34.56 kB / 1.243 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/1.075, allocations: 0 / 1.243 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001847/1.076, allocations: 0.5693 MB / 1.244 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/1.076, allocations: 55.41 kB / 1.244 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/1.077, allocations: 462.1 kB / 1.245 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/1.077, allocations: 33.92 kB / 1.245 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/1.077, allocations: 244.5 kB / 1.245 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.63e-05/1.077, allocations: 98.61 kB / 1.245 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/1.078, allocations: 73.44 kB / 1.245 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001873/1.078, allocations: 362.8 kB / 1.245 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/1.078, allocations: 116.8 kB / 1.245 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003863/1.078, allocations: 182.6 kB / 1.246 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000641/1.079, allocations: 278.3 kB / 1.246 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.079, allocations: 0 / 1.246 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001588/1.081, allocations: 496.1 kB / 1.246 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/1.081, allocations: 4 kB / 1.246 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/1.081, allocations: 4 kB / 1.246 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/1.081, allocations: 56.75 kB / 1.246 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/1.081, allocations: 67.89 kB / 1.246 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004996/1.082, allocations: 0.5679 MB / 1.247 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/1.082, allocations: 47.73 kB / 1.247 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/1.083, allocations: 16.09 kB / 1.247 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004412/1.083, allocations: 240 kB / 1.247 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003523/1.083, allocations: 181.5 kB / 1.247 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005819/1.084, allocations: 256.2 kB / 1.248 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.393e-06/1.084, allocations: 4 kB / 1.248 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.000809/1.085, allocations: 364.8 kB / 1.248 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/1.085, allocations: 11.94 kB / 1.248 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/1.085, allocations: 0 / 1.248 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.619e-06/1.085, allocations: 0 / 1.248 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/1.085, allocations: 87.81 kB / 1.248 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/1.085, allocations: 4 kB / 1.248 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/1.086, allocations: 47.8 kB / 1.248 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/1.086, allocations: 12 kB / 1.248 GB, free: 3.527 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.000182/1.086, allocations: 200.1 kB / 1.248 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.195e-05/1.086, allocations: 51.42 kB / 1.248 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/1.087, allocations: 440.6 kB / 1.249 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/1.087, allocations: 0 / 1.249 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.087, allocations: 4 kB / 1.249 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.087, allocations: 0 / 1.249 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/1.089, allocations: 0.9433 MB / 1.25 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/1.089, allocations: 4 kB / 1.25 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/1.089, allocations: 43.91 kB / 1.25 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/1.089, allocations: 44.83 kB / 1.25 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/1.089, allocations: 8 kB / 1.25 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004378/1.09, allocations: 0.5602 MB / 1.25 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.09, allocations: 7.969 kB / 1.25 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009035/1.091, allocations: 498.8 kB / 1.251 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/1.091, allocations: 148.4 kB / 1.251 GB, free: 436 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.693e-05/1.091, allocations: 8 kB / 1.251 GB, free: 428 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/1.091, allocations: 23.97 kB / 1.251 GB, free: 404 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.583e-05/1.091, allocations: 27.91 kB / 1.251 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/1.091, allocations: 15.92 kB / 1.251 GB, free: 360 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000388/1.092, allocations: 326.9 kB / 1.251 GB, free: 36 kB / 0.9669 GB Notification: Performance of sort global known variables: time 2.61e-07/1.092, allocations: 0 / 1.251 GB, free: 36 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0008675/1.093, allocations: 243.6 kB / 1.252 GB, free: 15.79 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.0005936/1.093, allocations: 260.8 kB / 1.252 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001289/1.094, allocations: 470.6 kB / 1.252 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.094, allocations: 0 / 1.252 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004137/1.095, allocations: 174.2 kB / 1.253 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/1.096, allocations: 211.9 kB / 1.253 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/1.098, allocations: 0.8175 MB / 1.254 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/1.098, allocations: 0.8549 MB / 1.254 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0003858/1.098, allocations: 120.2 kB / 1.255 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/1.099, allocations: 43.42 kB / 1.255 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of SimCode: time 4.6e-07/1.099, allocations: 0 / 1.255 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of Templates: time 0.01912/1.118, allocations: 10.37 MB / 1.265 GB, free: 2.594 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