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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001535/0.001535, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001567/0.001567, allocations: 194.1 kB / 16.25 MB, free: 6.633 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.426/1.426, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.897/2.897, allocations: 482.4 MB / 0.7543 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 65.97 kB / 0.9233 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3663, allocations: 162.2 MB / 1.082 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02203/0.3884, allocations: 20.65 MB / 1.102 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.007204/0.3956, allocations: 4.928 MB / 1.107 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006893/0.3963, allocations: 15.88 kB / 1.107 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007789/0.3971, allocations: 226.7 kB / 1.107 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.3992, allocations: 0.7504 MB / 1.108 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.401, allocations: 0.652 MB / 1.108 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001719/0.4028, allocations: 1.376 MB / 1.11 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006663/0.4034, allocations: 432.7 kB / 1.11 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.4048, allocations: 0.6497 MB / 1.111 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005966/0.4054, allocations: 454.1 kB / 1.111 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 6.993e-05/0.4055, allocations: 36 kB / 1.111 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.4066, allocations: 0.6355 MB / 1.112 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.4068, allocations: 127.5 kB / 1.112 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002879/0.4071, allocations: 286.5 kB / 1.112 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.4082, allocations: 0.8333 MB / 1.113 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4082, allocations: 4 kB / 1.113 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4082, allocations: 0 / 1.113 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.914e-06/0.4082, allocations: 0 / 1.113 GB, free: 13.51 MB / 0.8731 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.001587/0.4098, allocations: 0.9226 MB / 1.114 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4099, allocations: 12.03 kB / 1.114 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.41, allocations: 64.19 kB / 1.114 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.4106, allocations: 451.3 kB / 1.114 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.4107, allocations: 28.66 kB / 1.114 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.085e-05/0.4107, allocations: 36 kB / 1.114 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007084/0.4115, allocations: 309.9 kB / 1.115 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.4115, allocations: 4 kB / 1.115 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.4115, allocations: 12 kB / 1.115 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.4115, allocations: 8 kB / 1.115 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006532/0.4122, allocations: 258.4 kB / 1.115 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.4144, allocations: 1.337 MB / 1.116 GB, free: 9.875 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.4149, allocations: 261.4 kB / 1.117 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.4152, allocations: 136.8 kB / 1.117 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005195/0.4158, allocations: 0.4908 MB / 1.117 GB, free: 8.875 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.4158, allocations: 42.55 kB / 1.117 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=25): time 1.532e-06/0.4158, allocations: 0 / 1.117 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of matching and sorting (n=25): time 0.001786/0.4176, allocations: 0.5587 MB / 1.118 GB, free: 8.238 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.4177, allocations: 55.41 kB / 1.118 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.4182, allocations: 466.2 kB / 1.118 GB, free: 7.707 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.4182, allocations: 33.7 kB / 1.118 GB, free: 7.668 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.4184, allocations: 256.3 kB / 1.119 GB, free: 7.414 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.377e-05/0.4185, allocations: 74.77 kB / 1.119 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.4187, allocations: 81.58 kB / 1.119 GB, free: 7.254 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4188, allocations: 358.8 kB / 1.119 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.4191, allocations: 124.8 kB / 1.119 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.4195, allocations: 181 kB / 1.119 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006259/0.4202, allocations: 275.6 kB / 1.12 GB, free: 6.297 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4202, allocations: 0 / 1.12 GB, free: 6.297 MB / 0.8731 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001575/0.4218, allocations: 490.3 kB / 1.12 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.4218, allocations: 8 kB / 1.12 GB, free: 5.801 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.4218, allocations: 0 / 1.12 GB, free: 5.801 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003856/0.4222, allocations: 52.81 kB / 1.12 GB, free: 5.746 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.4226, allocations: 71.89 kB / 1.12 GB, free: 5.676 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004815/0.4231, allocations: 0.5601 MB / 1.121 GB, free: 5.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.4236, allocations: 75.67 kB / 1.121 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.385e-05/0.4236, allocations: 16 kB / 1.121 GB, free: 5 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000441/0.4241, allocations: 239.8 kB / 1.121 GB, free: 4.762 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003573/0.4244, allocations: 178.6 kB / 1.121 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005661/0.425, allocations: 265.9 kB / 1.121 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.293e-06/0.425, allocations: 0 / 1.121 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0007799/0.4258, allocations: 364.8 kB / 1.122 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.4258, allocations: 9.406 kB / 1.122 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-06/0.4258, allocations: 0 / 1.122 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-06/0.4258, allocations: 0 / 1.122 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004031/0.4263, allocations: 87.81 kB / 1.122 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.4263, allocations: 0 / 1.122 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.4267, allocations: 63.72 kB / 1.122 GB, free: 3.785 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.4268, allocations: 12 kB / 1.122 GB, free: 3.773 MB / 0.8731 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.0001694/0.427, allocations: 201.5 kB / 1.122 GB, free: 3.57 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.84e-05/0.427, allocations: 47.34 kB / 1.122 GB, free: 3.523 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009916/0.428, allocations: 432.2 kB / 1.123 GB, free: 3.086 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4281, allocations: 8 kB / 1.123 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4281, allocations: 0 / 1.123 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4281, allocations: 0 / 1.123 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.4296, allocations: 0.9527 MB / 1.124 GB, free: 2.055 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4297, allocations: 4 kB / 1.124 GB, free: 2.051 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.4299, allocations: 47.97 kB / 1.124 GB, free: 2.004 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.4301, allocations: 36.95 kB / 1.124 GB, free: 1.965 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.4301, allocations: 15.94 kB / 1.124 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003832/0.4305, allocations: 0.5602 MB / 1.124 GB, free: 1.363 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4305, allocations: 3.938 kB / 1.124 GB, free: 1.359 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008199/0.4313, allocations: 499 kB / 1.125 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.4315, allocations: 148.4 kB / 1.125 GB, free: 0.6758 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.4316, allocations: 8 kB / 1.125 GB, free: 0.668 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.432, allocations: 43.86 kB / 1.125 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.4321, allocations: 23.91 kB / 1.125 GB, free: 0.6016 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.4321, allocations: 12 kB / 1.125 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003526/0.4325, allocations: 322.9 kB / 1.125 GB, free: 284 kB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4325, allocations: 4 kB / 1.125 GB, free: 280 kB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007228/0.4332, allocations: 255.5 kB / 1.125 GB, free: 24 kB / 0.8731 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.0005592/0.4338, allocations: 247.9 kB / 1.126 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.435, allocations: 481.6 kB / 1.126 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.435, allocations: 4 kB / 1.126 GB, free: 15.3 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.4354, allocations: 163.8 kB / 1.126 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.4365, allocations: 221.7 kB / 1.127 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.438, allocations: 0.9973 MB / 1.128 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.4385, allocations: 0.8548 MB / 1.128 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0004127/0.4389, allocations: 124.2 kB / 1.128 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.439, allocations: 47.42 kB / 1.129 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of SimCode: time 2.1e-07/0.439, allocations: 0 / 1.129 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of Templates: time 0.01786/0.4569, allocations: 9.984 MB / 1.138 GB, free: 3.023 MB / 0.8887 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=400 -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