Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001823/0.001823, allocations: 117.8 kB / 17.13 MB, free: 6.004 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.002186/0.002186, allocations: 217.8 kB / 20.1 MB, free: 3.051 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.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.984/2.984, allocations: 0.49 GB / 0.7923 GB, free: 1.355 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.00208/0.00208, allocations: 67.91 kB / 1.15 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.109/1.111, allocations: 176.1 MB / 1.322 GB, free: 25.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02239/1.133, allocations: 21.16 MB / 1.343 GB, free: 9.875 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.008175/1.142, allocations: 5.225 MB / 1.348 GB, free: 6.168 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/1.143, allocations: 27 kB / 1.348 GB, free: 6.152 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0009593/1.144, allocations: 286.3 kB / 1.348 GB, free: 5.977 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.003654/1.147, allocations: 1.047 MB / 1.349 GB, free: 5.387 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001966/1.149, allocations: 0.6381 MB / 1.35 GB, free: 5.074 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.002694/1.152, allocations: 1.462 MB / 1.351 GB, free: 4.406 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007926/1.153, allocations: 409.4 kB / 1.351 GB, free: 4.242 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001719/1.155, allocations: 0.7134 MB / 1.352 GB, free: 3.922 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008899/1.156, allocations: 0.5044 MB / 1.353 GB, free: 3.711 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001115/1.156, allocations: 48.41 kB / 1.353 GB, free: 3.711 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/1.158, allocations: 0.7548 MB / 1.353 GB, free: 3.465 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0002121/1.158, allocations: 162.4 kB / 1.354 GB, free: 3.367 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000418/1.158, allocations: 326.6 kB / 1.354 GB, free: 3.176 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.002028/1.16, allocations: 0.9957 MB / 1.355 GB, free: 2.809 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/1.16, allocations: 1.25 kB / 1.355 GB, free: 2.809 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.934e-06/1.16, allocations: 0 / 1.355 GB, free: 2.809 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.119e-05/1.16, allocations: 0.9688 kB / 1.355 GB, free: 2.809 MB / 1.061 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.002158/1.163, allocations: 1.049 MB / 1.356 GB, free: 2.051 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/1.163, allocations: 13.06 kB / 1.356 GB, free: 2.047 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/1.163, allocations: 75.22 kB / 1.356 GB, free: 2.008 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/1.164, allocations: 0.5797 MB / 1.357 GB, free: 1.617 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/1.164, allocations: 22.75 kB / 1.357 GB, free: 1.605 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.159e-05/1.164, allocations: 34.77 kB / 1.357 GB, free: 1.594 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007608/1.165, allocations: 300.9 kB / 1.357 GB, free: 1.48 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/1.165, allocations: 1.094 kB / 1.357 GB, free: 1.48 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/1.165, allocations: 10.86 kB / 1.357 GB, free: 1.473 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/1.165, allocations: 10.25 kB / 1.357 GB, free: 1.469 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/1.166, allocations: 264.6 kB / 1.357 GB, free: 1.402 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002452/1.168, allocations: 1.415 MB / 1.359 GB, free: 476 kB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000693/1.169, allocations: 234 kB / 1.359 GB, free: 388 kB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/1.169, allocations: 127.3 kB / 1.359 GB, free: 348 kB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004569/1.17, allocations: 0.4935 MB / 1.359 GB, free: 15.77 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/1.17, allocations: 36.48 kB / 1.359 GB, free: 15.73 MB / 1.076 GB Notification: Performance of pre-optimization done (n=18): time 2.054e-06/1.17, allocations: 0 / 1.359 GB, free: 15.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=18): time 0.001393/1.171, allocations: 410.9 kB / 1.36 GB, free: 15.58 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/1.171, allocations: 58.31 kB / 1.36 GB, free: 15.52 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/1.172, allocations: 0.6085 MB / 1.36 GB, free: 15.25 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/1.172, allocations: 37.73 kB / 1.36 GB, free: 15.21 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/1.172, allocations: 253.6 kB / 1.361 GB, free: 15 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/1.173, allocations: 78.95 kB / 1.361 GB, free: 14.94 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/1.173, allocations: 123.5 kB / 1.361 GB, free: 14.89 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002276/1.173, allocations: 364.3 kB / 1.361 GB, free: 14.55 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006272/1.174, allocations: 194.6 kB / 1.361 GB, free: 14.49 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/1.174, allocations: 301.3 kB / 1.362 GB, free: 14.34 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/1.176, allocations: 359.2 kB / 1.362 GB, free: 14.2 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.176, allocations: 1.562 kB / 1.362 GB, free: 14.2 MB / 1.076 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001916/1.177, allocations: 0.586 MB / 1.363 GB, free: 13.98 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.177, allocations: 6.406 kB / 1.363 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.177, allocations: 1.625 kB / 1.363 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/1.178, allocations: 67.55 kB / 1.363 GB, free: 13.94 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/1.178, allocations: 109.6 kB / 1.363 GB, free: 13.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005706/1.179, allocations: 0.5564 MB / 1.363 GB, free: 13.4 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000976/1.18, allocations: 84.53 kB / 1.363 GB, free: 13.38 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.938e-05/1.18, allocations: 22.7 kB / 1.363 GB, free: 13.37 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008575/1.181, allocations: 323.8 kB / 1.364 GB, free: 13.21 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000729/1.181, allocations: 290.7 kB / 1.364 GB, free: 13.06 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001011/1.183, allocations: 354.4 kB / 1.364 GB, free: 12.92 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/1.183, allocations: 4 kB / 1.364 GB, free: 12.92 MB / 1.076 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001671/1.184, allocations: 0.5506 MB / 1.365 GB, free: 12.71 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.184, allocations: 4.875 kB / 1.365 GB, free: 12.71 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/1.184, allocations: 6.172 kB / 1.365 GB, free: 12.71 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.813e-06/1.184, allocations: 3.031 kB / 1.365 GB, free: 12.71 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/1.185, allocations: 119.6 kB / 1.365 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/1.185, allocations: 2.922 kB / 1.365 GB, free: 12.7 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009313/1.186, allocations: 84.8 kB / 1.365 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/1.186, allocations: 23.88 kB / 1.365 GB, free: 12.68 MB / 1.076 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.000264/1.186, allocations: 198.7 kB / 1.365 GB, free: 12.48 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/1.186, allocations: 61.34 kB / 1.365 GB, free: 12.45 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/1.187, allocations: 388.6 kB / 1.366 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/1.187, allocations: 7.234 kB / 1.366 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.187, allocations: 2.312 kB / 1.366 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/1.187, allocations: 0.75 kB / 1.366 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/1.19, allocations: 0.9941 MB / 1.367 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/1.19, allocations: 5.375 kB / 1.367 GB, free: 11.72 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/1.19, allocations: 79.61 kB / 1.367 GB, free: 11.72 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/1.19, allocations: 6.781 kB / 1.367 GB, free: 11.71 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/1.19, allocations: 5.703 kB / 1.367 GB, free: 11.71 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008385/1.191, allocations: 0.6358 MB / 1.368 GB, free: 11.11 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.191, allocations: 1.156 kB / 1.368 GB, free: 11.11 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/1.192, allocations: 476.6 kB / 1.368 GB, free: 10.83 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/1.192, allocations: 161.4 kB / 1.368 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.324e-05/1.192, allocations: 7.719 kB / 1.368 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004676/1.193, allocations: 41.08 kB / 1.368 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/1.193, allocations: 22.52 kB / 1.368 GB, free: 10.67 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/1.193, allocations: 9.734 kB / 1.368 GB, free: 10.67 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.00086/1.194, allocations: 438 kB / 1.369 GB, free: 10.48 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.194, allocations: 0 / 1.369 GB, free: 10.48 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001366/1.195, allocations: 335.9 kB / 1.369 GB, free: 10.41 MB / 1.076 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.0006828/1.196, allocations: 274.2 kB / 1.369 GB, free: 10.26 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.00224/1.198, allocations: 0.6222 MB / 1.37 GB, free: 10.09 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/1.198, allocations: 4 kB / 1.37 GB, free: 10.09 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001594/1.2, allocations: 255.9 kB / 1.37 GB, free: 10.05 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/1.201, allocations: 223 kB / 1.37 GB, free: 9.977 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/1.203, allocations: 0.8837 MB / 1.371 GB, free: 9.441 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005858/1.203, allocations: 0.8611 MB / 1.372 GB, free: 8.727 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/1.204, allocations: 53.62 kB / 1.372 GB, free: 8.715 MB / 1.076 GB Notification: Performance of SimCode: time 1.403e-06/1.204, allocations: 0 / 1.372 GB, free: 8.715 MB / 1.076 GB Notification: Performance of Templates: time 0.0259/1.23, allocations: 11.67 MB / 1.383 GB, free: 7.371 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 14.059027606999734]