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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 215.3 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.384/3.384, allocations: 0.5107 GB / 0.8166 GB, free: 17.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 62.44 kB / 1.187 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3844, allocations: 181.9 MB / 1.365 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02889/0.4133, allocations: 19.42 MB / 1.384 GB, free: 10.05 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00916/0.4225, allocations: 4.796 MB / 1.388 GB, free: 5.242 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.4235, allocations: 31.75 kB / 1.388 GB, free: 5.211 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.4247, allocations: 274 kB / 1.389 GB, free: 4.941 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.003748/0.4284, allocations: 1.056 MB / 1.39 GB, free: 3.883 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.002063/0.4305, allocations: 0.6482 MB / 1.39 GB, free: 3.242 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.002639/0.4331, allocations: 1.481 MB / 1.392 GB, free: 1.754 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000972/0.4341, allocations: 388.9 kB / 1.392 GB, free: 1.371 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.4359, allocations: 0.7277 MB / 1.393 GB, free: 0.6406 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.4371, allocations: 493.9 kB / 1.393 GB, free: 160 kB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.00023/0.4374, allocations: 48 kB / 1.393 GB, free: 112 kB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.4391, allocations: 0.5732 MB / 1.394 GB, free: 15.54 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0002996/0.4394, allocations: 155.4 kB / 1.394 GB, free: 15.38 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0006255/0.4401, allocations: 274.6 kB / 1.394 GB, free: 15.11 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.00211/0.4422, allocations: 0.973 MB / 1.395 GB, free: 14.14 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4422, allocations: 0 / 1.395 GB, free: 14.14 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4422, allocations: 3.938 kB / 1.395 GB, free: 14.13 MB / 1.092 GB Notification: Performance of Transformations before backend: time 2.455e-05/0.4422, allocations: 0 / 1.395 GB, free: 14.13 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002524/0.4447, allocations: 0.9747 MB / 1.396 GB, free: 13.12 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.4448, allocations: 12.03 kB / 1.396 GB, free: 13.11 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.4467, allocations: 236.2 kB / 1.396 GB, free: 12.88 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/0.4482, allocations: 0.5197 MB / 1.397 GB, free: 12.34 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.4482, allocations: 28.5 kB / 1.397 GB, free: 12.31 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.4483, allocations: 32 kB / 1.397 GB, free: 12.28 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009295/0.4493, allocations: 381.6 kB / 1.397 GB, free: 11.89 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4493, allocations: 0 / 1.397 GB, free: 11.89 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.4493, allocations: 8 kB / 1.397 GB, free: 11.89 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.4493, allocations: 11.94 kB / 1.397 GB, free: 11.88 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.4503, allocations: 345.7 kB / 1.398 GB, free: 11.54 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.4531, allocations: 1.047 MB / 1.399 GB, free: 10.46 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.4541, allocations: 354.5 kB / 1.399 GB, free: 10.11 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004547/0.4545, allocations: 168.8 kB / 1.399 GB, free: 9.938 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002233/0.4548, allocations: 43.97 kB / 1.399 GB, free: 9.895 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.4548, allocations: 30.56 kB / 1.399 GB, free: 9.855 MB / 1.092 GB Notification: Performance of pre-optimization done (n=18): time 1.873e-06/0.4548, allocations: 0 / 1.399 GB, free: 9.855 MB / 1.092 GB Notification: Performance of matching and sorting (n=18): time 0.001649/0.4564, allocations: 0.5107 MB / 1.4 GB, free: 9.34 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.4565, allocations: 55.41 kB / 1.4 GB, free: 9.273 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.4575, allocations: 0.5964 MB / 1.4 GB, free: 8.668 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/0.4576, allocations: 33.7 kB / 1.4 GB, free: 8.629 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.4578, allocations: 261 kB / 1.401 GB, free: 8.371 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 8.367e-05/0.4579, allocations: 71.36 kB / 1.401 GB, free: 8.301 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.4581, allocations: 126 kB / 1.401 GB, free: 8.172 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001921/0.4583, allocations: 358.8 kB / 1.401 GB, free: 7.812 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007037/0.459, allocations: 242.5 kB / 1.401 GB, free: 7.57 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.46, allocations: 0.5751 MB / 1.402 GB, free: 6.91 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.4613, allocations: 443.6 kB / 1.402 GB, free: 6.465 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4613, allocations: 0 / 1.402 GB, free: 6.465 MB / 1.092 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003855/0.4651, allocations: 0.8202 MB / 1.403 GB, free: 5.637 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4651, allocations: 8 kB / 1.403 GB, free: 5.629 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.4652, allocations: 0 / 1.403 GB, free: 5.629 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.4655, allocations: 104.8 kB / 1.403 GB, free: 5.523 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.4663, allocations: 119.8 kB / 1.403 GB, free: 5.406 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007226/0.467, allocations: 0.5991 MB / 1.404 GB, free: 4.781 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.468, allocations: 83.92 kB / 1.404 GB, free: 4.699 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.594e-05/0.4681, allocations: 23.98 kB / 1.404 GB, free: 4.676 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008951/0.469, allocations: 361.9 kB / 1.404 GB, free: 4.32 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009557/0.47, allocations: 0.5712 MB / 1.405 GB, free: 3.656 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001184/0.4711, allocations: 441 kB / 1.405 GB, free: 3.219 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.355e-06/0.4711, allocations: 0 / 1.405 GB, free: 3.219 MB / 1.092 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001804/0.473, allocations: 0.63 MB / 1.406 GB, free: 2.582 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.473, allocations: 4 kB / 1.406 GB, free: 2.578 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.473, allocations: 4 kB / 1.406 GB, free: 2.574 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.473, allocations: 0 / 1.406 GB, free: 2.574 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007755/0.4738, allocations: 123.8 kB / 1.406 GB, free: 2.453 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.4738, allocations: 7.984 kB / 1.406 GB, free: 2.445 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4748, allocations: 91.78 kB / 1.406 GB, free: 2.355 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.4749, allocations: 23.98 kB / 1.406 GB, free: 2.332 MB / 1.092 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 (50): * Single equations (assignments): 49 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002471/0.4751, allocations: 200.1 kB / 1.406 GB, free: 2.129 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.4753, allocations: 55.62 kB / 1.407 GB, free: 2.074 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.4767, allocations: 494 kB / 1.407 GB, free: 1.582 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.4767, allocations: 0 / 1.407 GB, free: 1.582 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4767, allocations: 0 / 1.407 GB, free: 1.582 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.4767, allocations: 0 / 1.407 GB, free: 1.582 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/0.4794, allocations: 0.9911 MB / 1.408 GB, free: 0.543 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.4794, allocations: 0 / 1.408 GB, free: 0.543 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.4811, allocations: 139.8 kB / 1.408 GB, free: 416 kB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.4811, allocations: 7.938 kB / 1.408 GB, free: 408 kB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.4811, allocations: 4 kB / 1.408 GB, free: 404 kB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.4824, allocations: 0.6915 MB / 1.409 GB, free: 15.68 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4824, allocations: 0 / 1.409 GB, free: 15.68 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.4837, allocations: 0.544 MB / 1.409 GB, free: 15.11 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.4841, allocations: 91.62 kB / 1.409 GB, free: 15.02 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.4842, allocations: 8 kB / 1.409 GB, free: 15.01 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.4849, allocations: 52.02 kB / 1.409 GB, free: 14.96 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/0.4849, allocations: 19.91 kB / 1.409 GB, free: 14.94 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.485, allocations: 12 kB / 1.409 GB, free: 14.93 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0007287/0.4857, allocations: 414.8 kB / 1.41 GB, free: 14.53 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4857, allocations: 4 kB / 1.41 GB, free: 14.52 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001106/0.4868, allocations: 347.3 kB / 1.41 GB, free: 14.18 MB / 1.107 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005464/0.4874, allocations: 254.7 kB / 1.41 GB, free: 13.93 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.00236/0.4897, allocations: 0.7386 MB / 1.411 GB, free: 13.19 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4897, allocations: 0 / 1.411 GB, free: 13.19 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.4917, allocations: 271.7 kB / 1.411 GB, free: 12.92 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.493, allocations: 203.8 kB / 1.412 GB, free: 12.73 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.495, allocations: 0.9128 MB / 1.413 GB, free: 11.77 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.4953, allocations: 263 kB / 1.413 GB, free: 11.48 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.4955, allocations: 59.34 kB / 1.413 GB, free: 11.42 MB / 1.107 GB Notification: Performance of SimCode: time 1.372e-06/0.4955, allocations: 4 kB / 1.413 GB, free: 11.41 MB / 1.107 GB Notification: Performance of Templates: time 0.02104/0.5166, allocations: 12.47 MB / 1.425 GB, free: 15.03 MB / 1.123 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.82333966391161]