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.001563/0.001563, allocations: 108.9 kB / 16.27 MB, free: 6.414 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.001494/0.001494, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.638/2.638, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 69.73 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7914/0.7933, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02322/0.8166, allocations: 20.77 MB / 1.103 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007674/0.8243, allocations: 4.946 MB / 1.108 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000999/0.8253, allocations: 22.06 kB / 1.108 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.8265, allocations: 272.2 kB / 1.108 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.8291, allocations: 0.8102 MB / 1.109 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002169/0.8312, allocations: 0.7046 MB / 1.11 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002013/0.8333, allocations: 1.372 MB / 1.111 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006811/0.834, allocations: 450.6 kB / 1.112 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001278/0.8352, allocations: 0.6374 MB / 1.112 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.8359, allocations: 441.2 kB / 1.113 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.634e-05/0.8359, allocations: 37.12 kB / 1.113 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.8375, allocations: 0.6277 MB / 1.113 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.8376, allocations: 123.6 kB / 1.113 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003252/0.838, allocations: 287.1 kB / 1.114 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.8394, allocations: 0.839 MB / 1.114 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.8394, allocations: 1.375 kB / 1.114 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8394, allocations: 0 / 1.114 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.8394, allocations: 0 / 1.114 GB, free: 12.2 MB / 0.8575 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.001685/0.8411, allocations: 0.9245 MB / 1.115 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.8411, allocations: 10.03 kB / 1.115 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.8413, allocations: 63.25 kB / 1.115 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/0.8419, allocations: 462.8 kB / 1.116 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.842, allocations: 22.84 kB / 1.116 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.842, allocations: 36 kB / 1.116 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.8427, allocations: 309.7 kB / 1.116 GB, free: 11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.8427, allocations: 7.984 kB / 1.116 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.8427, allocations: 10.84 kB / 1.116 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.8427, allocations: 7.094 kB / 1.116 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006514/0.8434, allocations: 263 kB / 1.116 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.8457, allocations: 1.336 MB / 1.118 GB, free: 10 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.8462, allocations: 263.8 kB / 1.118 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.8465, allocations: 134.7 kB / 1.118 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005626/0.8471, allocations: 0.4935 MB / 1.119 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.8471, allocations: 40.12 kB / 1.119 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.8471, allocations: 1.438 kB / 1.119 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of matching and sorting (n=25): time 0.001813/0.8489, allocations: 0.5586 MB / 1.119 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.849, allocations: 58.77 kB / 1.119 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.8496, allocations: 470.7 kB / 1.12 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.8496, allocations: 33.17 kB / 1.12 GB, free: 8.656 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.8499, allocations: 243.5 kB / 1.12 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.8499, allocations: 91.33 kB / 1.12 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.8501, allocations: 72.19 kB / 1.12 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001898/0.8503, allocations: 355.8 kB / 1.12 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.8506, allocations: 124.8 kB / 1.121 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000384/0.851, allocations: 182.5 kB / 1.121 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006226/0.8517, allocations: 276.8 kB / 1.121 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.8517, allocations: 0.9375 kB / 1.121 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001583/0.8533, allocations: 495.4 kB / 1.122 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.8533, allocations: 5.469 kB / 1.122 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.8533, allocations: 1.062 kB / 1.122 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003645/0.8537, allocations: 59.08 kB / 1.122 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.854, allocations: 65.69 kB / 1.122 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005167/0.8545, allocations: 0.5696 MB / 1.122 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004472/0.855, allocations: 45.69 kB / 1.122 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.855, allocations: 20.23 kB / 1.122 GB, free: 7 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004487/0.8555, allocations: 242.2 kB / 1.123 GB, free: 6.863 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003561/0.8559, allocations: 173.1 kB / 1.123 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005999/0.8565, allocations: 261.4 kB / 1.123 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.393e-06/0.8565, allocations: 0 / 1.123 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0007976/0.8573, allocations: 368.6 kB / 1.123 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.8573, allocations: 6.094 kB / 1.123 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-06/0.8573, allocations: 4 kB / 1.123 GB, free: 6.531 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.546e-06/0.8573, allocations: 2.25 kB / 1.123 GB, free: 6.531 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.8577, allocations: 85.45 kB / 1.123 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.8577, allocations: 6.797 kB / 1.123 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004233/0.8581, allocations: 41.67 kB / 1.123 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.8582, allocations: 16.98 kB / 1.123 GB, free: 6.5 MB / 0.8575 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.0001695/0.8584, allocations: 205.8 kB / 1.124 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.8585, allocations: 45.78 kB / 1.124 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009754/0.8594, allocations: 425.1 kB / 1.124 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.8595, allocations: 12.59 kB / 1.124 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.8595, allocations: 0 / 1.124 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.8595, allocations: 0.8438 kB / 1.124 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.8611, allocations: 0.9518 MB / 1.125 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.8611, allocations: 1.594 kB / 1.125 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.8613, allocations: 44.77 kB / 1.125 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.8615, allocations: 50.97 kB / 1.125 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.8616, allocations: 9.234 kB / 1.125 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004022/0.862, allocations: 0.555 MB / 1.126 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.862, allocations: 5.219 kB / 1.126 GB, free: 4.941 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008851/0.8629, allocations: 496.4 kB / 1.126 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.8631, allocations: 161 kB / 1.126 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.574e-05/0.8632, allocations: 3.125 kB / 1.126 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003221/0.8635, allocations: 24.11 kB / 1.126 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.8636, allocations: 25.88 kB / 1.126 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.8636, allocations: 13.5 kB / 1.126 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004426/0.8641, allocations: 319.8 kB / 1.127 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8641, allocations: 4.906 kB / 1.127 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000971/0.8651, allocations: 253.3 kB / 1.127 GB, free: 4.285 MB / 0.8575 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.0006222/0.8657, allocations: 256.8 kB / 1.127 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001346/0.8671, allocations: 481.9 kB / 1.128 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.8671, allocations: 5.25 kB / 1.128 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004296/0.8675, allocations: 161.8 kB / 1.128 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.8686, allocations: 215.2 kB / 1.128 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.8703, allocations: 0.8712 MB / 1.129 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005554/0.8708, allocations: 0.8563 MB / 1.13 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.871, allocations: 45.33 kB / 1.13 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.871, allocations: 0 / 1.13 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of Templates: time 0.01582/0.8868, allocations: 10.13 MB / 1.14 GB, free: 13.55 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches