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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.659/1.659, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.571/3.571, allocations: 0.4893 GB / 0.7884 GB, free: 33.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 58.94 kB / 1.145 GB, free: 30.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4782/0.4802, allocations: 174.9 MB / 1.316 GB, free: 9.723 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02958/0.5098, allocations: 21.24 MB / 1.337 GB, free: 4.41 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.009284/0.5191, allocations: 5.242 MB / 1.342 GB, free: 15.16 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.5201, allocations: 27.69 kB / 1.342 GB, free: 15.13 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.5211, allocations: 290 kB / 1.342 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.003243/0.5244, allocations: 1.068 MB / 1.343 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001913/0.5263, allocations: 0.6491 MB / 1.344 GB, free: 13.13 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.002395/0.5287, allocations: 1.493 MB / 1.345 GB, free: 11.63 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006671/0.5293, allocations: 396.8 kB / 1.346 GB, free: 11.24 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.5308, allocations: 0.7238 MB / 1.346 GB, free: 10.51 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008062/0.5316, allocations: 0.5019 MB / 1.347 GB, free: 10.01 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.033e-05/0.5317, allocations: 48 kB / 1.347 GB, free: 9.961 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.5333, allocations: 0.7641 MB / 1.348 GB, free: 9.195 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.5335, allocations: 159.4 kB / 1.348 GB, free: 9.039 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0003722/0.5339, allocations: 330.2 kB / 1.348 GB, free: 8.715 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001586/0.5355, allocations: 0.9925 MB / 1.349 GB, free: 7.719 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.5355, allocations: 0 / 1.349 GB, free: 7.719 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5355, allocations: 0 / 1.349 GB, free: 7.719 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.087e-05/0.5355, allocations: 0 / 1.349 GB, free: 7.719 MB / 1.045 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.002081/0.5376, allocations: 0.9747 MB / 1.35 GB, free: 6.711 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.5376, allocations: 12.03 kB / 1.35 GB, free: 6.699 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.5378, allocations: 68.52 kB / 1.35 GB, free: 6.633 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.5389, allocations: 0.5158 MB / 1.351 GB, free: 6.086 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.539, allocations: 24.5 kB / 1.351 GB, free: 6.062 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.409e-05/0.539, allocations: 32 kB / 1.351 GB, free: 6.031 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006921/0.5397, allocations: 300 kB / 1.351 GB, free: 5.734 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.5397, allocations: 0 / 1.351 GB, free: 5.734 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.5398, allocations: 12 kB / 1.351 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.5398, allocations: 4 kB / 1.351 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006937/0.5405, allocations: 265.8 kB / 1.351 GB, free: 5.457 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.5429, allocations: 1.38 MB / 1.353 GB, free: 3.969 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006072/0.5435, allocations: 234.5 kB / 1.353 GB, free: 3.73 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.5438, allocations: 132.8 kB / 1.353 GB, free: 3.598 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002161/0.544, allocations: 51.91 kB / 1.353 GB, free: 3.547 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.5441, allocations: 34.56 kB / 1.353 GB, free: 3.504 MB / 1.045 GB Notification: Performance of pre-optimization done (n=18): time 1.994e-06/0.5441, allocations: 0 / 1.353 GB, free: 3.504 MB / 1.045 GB Notification: Performance of matching and sorting (n=18): time 0.001164/0.5452, allocations: 406.7 kB / 1.353 GB, free: 3.102 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.5453, allocations: 55.34 kB / 1.353 GB, free: 3.035 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000906/0.5462, allocations: 0.6201 MB / 1.354 GB, free: 2.406 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.176e-05/0.5462, allocations: 29.7 kB / 1.354 GB, free: 2.371 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.5464, allocations: 265.1 kB / 1.354 GB, free: 2.109 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 8.887e-05/0.5465, allocations: 67.42 kB / 1.354 GB, free: 2.043 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.5467, allocations: 130 kB / 1.355 GB, free: 1.906 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0003561/0.5471, allocations: 358.8 kB / 1.355 GB, free: 1.547 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005491/0.5476, allocations: 206.4 kB / 1.355 GB, free: 1.344 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006393/0.5483, allocations: 287.9 kB / 1.355 GB, free: 1.035 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009493/0.5492, allocations: 363 kB / 1.356 GB, free: 0.668 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.5492, allocations: 0 / 1.356 GB, free: 0.668 MB / 1.045 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001578/0.5508, allocations: 0.5856 MB / 1.356 GB, free: 76 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.5508, allocations: 8 kB / 1.356 GB, free: 68 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5508, allocations: 4 kB / 1.356 GB, free: 64 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.5511, allocations: 52.75 kB / 1.356 GB, free: 8 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/0.5516, allocations: 111.8 kB / 1.356 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005418/0.5522, allocations: 0.5602 MB / 1.357 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007617/0.553, allocations: 86.62 kB / 1.357 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.553, allocations: 23.98 kB / 1.357 GB, free: 15.21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007154/0.5537, allocations: 325.5 kB / 1.357 GB, free: 14.88 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006494/0.5544, allocations: 279.9 kB / 1.358 GB, free: 14.59 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000887/0.5553, allocations: 361.2 kB / 1.358 GB, free: 14.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.5553, allocations: 0 / 1.358 GB, free: 14.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001422/0.5567, allocations: 0.5558 MB / 1.359 GB, free: 13.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.5567, allocations: 4 kB / 1.359 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.5567, allocations: 0 / 1.359 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.953e-06/0.5567, allocations: 4 kB / 1.359 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005499/0.5573, allocations: 119.8 kB / 1.359 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.5573, allocations: 4 kB / 1.359 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007877/0.5581, allocations: 87.77 kB / 1.359 GB, free: 13.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.5581, allocations: 24.17 kB / 1.359 GB, free: 13.43 MB / 1.061 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.0002332/0.5583, allocations: 196.1 kB / 1.359 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.5585, allocations: 71.5 kB / 1.359 GB, free: 13.16 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009844/0.5594, allocations: 388.5 kB / 1.359 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.5595, allocations: 0 / 1.359 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.5595, allocations: 4 kB / 1.359 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5595, allocations: 4 kB / 1.359 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.5613, allocations: 0.9783 MB / 1.36 GB, free: 11.72 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.5613, allocations: 0 / 1.36 GB, free: 11.72 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.5617, allocations: 79.91 kB / 1.36 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/0.5617, allocations: 7.875 kB / 1.36 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.5617, allocations: 8 kB / 1.36 GB, free: 11.63 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000589/0.5623, allocations: 0.6329 MB / 1.361 GB, free: 10.97 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5623, allocations: 4.031 kB / 1.361 GB, free: 10.97 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008939/0.5632, allocations: 484.6 kB / 1.362 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000193/0.5634, allocations: 83.61 kB / 1.362 GB, free: 10.39 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.576e-05/0.5635, allocations: 8 kB / 1.362 GB, free: 10.38 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.5639, allocations: 43.88 kB / 1.362 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.097e-05/0.564, allocations: 19.91 kB / 1.362 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.564, allocations: 12 kB / 1.362 GB, free: 10.3 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000725/0.5647, allocations: 434.8 kB / 1.362 GB, free: 9.883 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.5647, allocations: 0 / 1.362 GB, free: 9.883 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001079/0.5658, allocations: 339.3 kB / 1.362 GB, free: 9.551 MB / 1.061 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.0007262/0.5665, allocations: 285.3 kB / 1.363 GB, free: 9.27 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001861/0.5684, allocations: 0.6176 MB / 1.363 GB, free: 8.652 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5684, allocations: 0 / 1.363 GB, free: 8.652 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.5699, allocations: 265.9 kB / 1.364 GB, free: 8.395 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.571, allocations: 204 kB / 1.364 GB, free: 8.195 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.5727, allocations: 0.8603 MB / 1.365 GB, free: 7.293 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.5732, allocations: 0.863 MB / 1.365 GB, free: 6.398 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0005389/0.5738, allocations: 164.2 kB / 1.366 GB, free: 6.238 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.5739, allocations: 51.41 kB / 1.366 GB, free: 6.188 MB / 1.061 GB Notification: Performance of SimCode: time 9.31e-07/0.5739, allocations: 0 / 1.366 GB, free: 6.188 MB / 1.061 GB Notification: Performance of Templates: time 0.02464/0.5985, allocations: 12.27 MB / 1.378 GB, free: 10.09 MB / 1.076 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/jenkins/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: 11.11810894869268]