Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001444/0.001445, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.474/1.474, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7364/0.7364, allocations: 91.21 MB / 381.2 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 79.81 kB / 459.6 MB, free: 23.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1392, allocations: 67.7 MB / 0.515 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5051/0.6443, allocations: 141.9 MB / 0.6536 GB, free: 8.766 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004769/0.6491, allocations: 3.657 MB / 0.6571 GB, free: 5.809 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006094/0.6498, allocations: 15.75 kB / 0.6571 GB, free: 5.801 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007293/0.6505, allocations: 157.2 kB / 0.6573 GB, free: 5.676 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.6517, allocations: 344.9 kB / 0.6576 GB, free: 5.402 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008309/0.6525, allocations: 247.2 kB / 0.6579 GB, free: 5.219 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006898/0.6532, allocations: 0.6017 MB / 0.6584 GB, free: 4.875 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.6534, allocations: 80.94 kB / 0.6585 GB, free: 4.828 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006028/0.6541, allocations: 217.9 kB / 0.6587 GB, free: 4.703 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004583/0.6545, allocations: 226.8 kB / 0.6589 GB, free: 4.57 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.844e-05/0.6546, allocations: 15.47 kB / 0.659 GB, free: 4.57 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.6559, allocations: 495.3 kB / 0.6594 GB, free: 4.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.6561, allocations: 51.31 kB / 0.6595 GB, free: 4.297 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.6563, allocations: 176.8 kB / 0.6596 GB, free: 4.18 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.6574, allocations: 0.5024 MB / 0.6601 GB, free: 3.859 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.6574, allocations: 0 / 0.6601 GB, free: 3.859 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.6574, allocations: 0 / 0.6601 GB, free: 3.859 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.6575, allocations: 0 / 0.6601 GB, free: 3.859 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001747/0.6592, allocations: 0.7375 MB / 0.6609 GB, free: 3.203 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.6593, allocations: 10.28 kB / 0.6609 GB, free: 3.203 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.6594, allocations: 42.56 kB / 0.6609 GB, free: 3.18 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006002/0.66, allocations: 355.8 kB / 0.6612 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.6601, allocations: 19 kB / 0.6613 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.354e-05/0.6601, allocations: 28.38 kB / 0.6613 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.6607, allocations: 261.9 kB / 0.6615 GB, free: 2.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.6607, allocations: 0 / 0.6615 GB, free: 2.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.6607, allocations: 14.86 kB / 0.6616 GB, free: 2.648 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.6607, allocations: 4.875 kB / 0.6616 GB, free: 2.648 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005106/0.6613, allocations: 215.1 kB / 0.6618 GB, free: 2.551 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.6629, allocations: 1.097 MB / 0.6628 GB, free: 1.516 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.6635, allocations: 229.2 kB / 0.6631 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.6638, allocations: 112.5 kB / 0.6632 GB, free: 1.332 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.6648, allocations: 0.9787 MB / 0.6641 GB, free: 304 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/0.6653, allocations: 154 kB / 0.6643 GB, free: 188 kB / 478.1 MB Notification: Performance of pre-optimization done (n=23): time 1.903e-06/0.6653, allocations: 0 / 0.6643 GB, free: 188 kB / 478.1 MB Notification: Performance of matching and sorting (n=23): time 0.001187/0.6665, allocations: 464.8 kB / 0.6647 GB, free: 15.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.6666, allocations: 64.88 kB / 0.6648 GB, free: 15.81 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003754/0.667, allocations: 330.4 kB / 0.6651 GB, free: 15.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.667, allocations: 35.5 kB / 0.6651 GB, free: 15.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.6672, allocations: 194.6 kB / 0.6653 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.921e-05/0.6672, allocations: 80.89 kB / 0.6654 GB, free: 15.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.6674, allocations: 47.31 kB / 0.6654 GB, free: 15.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6675, allocations: 346.6 kB / 0.6658 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.6677, allocations: 82.84 kB / 0.6658 GB, free: 14.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.668, allocations: 110.3 kB / 0.6659 GB, free: 14.83 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004469/0.6684, allocations: 215.3 kB / 0.6661 GB, free: 14.69 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6684, allocations: 4 kB / 0.6662 GB, free: 14.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007367/0.6692, allocations: 349.1 kB / 0.6665 GB, free: 14.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.6692, allocations: 35.2 kB / 0.6665 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.6693, allocations: 0 / 0.6665 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/0.6695, allocations: 41.27 kB / 0.6666 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.6697, allocations: 46.25 kB / 0.6666 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.671, allocations: 1.413 MB / 0.668 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002852/0.6713, allocations: 33.89 kB / 0.668 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.6713, allocations: 14.75 kB / 0.668 GB, free: 12.95 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000183/0.6715, allocations: 146.8 kB / 0.6682 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.638e-05/0.6716, allocations: 31.06 kB / 0.6682 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007969/0.6724, allocations: 344.8 kB / 0.6685 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.6724, allocations: 2.781 kB / 0.6685 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.6724, allocations: 0 / 0.6685 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.6724, allocations: 2.094 kB / 0.6685 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.6737, allocations: 0.7567 MB / 0.6693 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.6737, allocations: 144 / 0.6693 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.6739, allocations: 33.52 kB / 0.6693 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001697/0.6741, allocations: 46.98 kB / 0.6693 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.6741, allocations: 10.3 kB / 0.6694 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.6753, allocations: 1.418 MB / 0.6707 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6753, allocations: 2.406 kB / 0.6707 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009458/0.6762, allocations: 0.4996 MB / 0.6712 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.6764, allocations: 114.2 kB / 0.6713 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.466e-05/0.6764, allocations: 6.531 kB / 0.6713 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.6767, allocations: 23.8 kB / 0.6714 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.6768, allocations: 32.56 kB / 0.6714 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.6768, allocations: 8.422 kB / 0.6714 GB, free: 9.992 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002645/0.6771, allocations: 239.6 kB / 0.6716 GB, free: 9.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6771, allocations: 0 / 0.6716 GB, free: 9.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.6777, allocations: 126.5 kB / 0.6718 GB, free: 9.805 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003974/0.6781, allocations: 217.7 kB / 0.672 GB, free: 9.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008471/0.6789, allocations: 394.8 kB / 0.6723 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6789, allocations: 0 / 0.6723 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004499/0.6794, allocations: 244.4 kB / 0.6726 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/0.6801, allocations: 95.05 kB / 0.6727 GB, free: 9.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.6817, allocations: 0.7957 MB / 0.6734 GB, free: 8.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.6821, allocations: 0.7822 MB / 0.6742 GB, free: 7.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002462/0.6823, allocations: 51.98 kB / 0.6743 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.782e-05/0.6824, allocations: 33.78 kB / 0.6743 GB, free: 7.801 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6824, allocations: 0 / 0.6743 GB, free: 7.801 MB / 494.1 MB Notification: Performance of Templates: time 0.01255/0.695, allocations: 6.101 MB / 0.6802 GB, free: 4.742 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches