Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 198 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7007/0.7007, allocations: 89.47 MB / 379.9 MB, free: 11 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 77.44 kB / 458.2 MB, free: 23.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1158, allocations: 67.31 MB / 0.5132 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.4547/0.5705, allocations: 189 MB / 0.6977 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02298/0.5935, allocations: 17.72 MB / 0.715 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.596, allocations: 31.81 kB / 0.715 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003291/0.5994, allocations: 0.9782 MB / 0.716 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006861/0.6063, allocations: 2.268 MB / 0.7182 GB, free: 0.7891 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005211/0.6115, allocations: 1.836 MB / 0.72 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004868/0.6164, allocations: 3.386 MB / 0.7233 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000986/0.6174, allocations: 445.3 kB / 0.7237 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003149/0.6205, allocations: 1.448 MB / 0.7252 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002665/0.6232, allocations: 1.526 MB / 0.7266 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0008196/0.6241, allocations: 168 kB / 0.7268 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006599/0.6307, allocations: 2.558 MB / 0.7293 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0009016/0.6316, allocations: 446.2 kB / 0.7297 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001962/0.6336, allocations: 1.026 MB / 0.7307 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.007127/0.6407, allocations: 2.995 MB / 0.7337 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.6408, allocations: 0 / 0.7337 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6408, allocations: 0 / 0.7337 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.792e-05/0.6409, allocations: 8 kB / 0.7337 GB, free: 0.9062 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.005667/0.6466, allocations: 2.409 MB / 0.736 GB, free: 14.44 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.6466, allocations: 12.03 kB / 0.736 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008486/0.6475, allocations: 226.4 kB / 0.7362 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.6492, allocations: 0.9492 MB / 0.7372 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.12e-05/0.6493, allocations: 111.2 kB / 0.7373 GB, free: 13.09 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002632/0.6496, allocations: 160.2 kB / 0.7374 GB, free: 12.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.6526, allocations: 1.636 MB / 0.739 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.923e-05/0.6527, allocations: 7.938 kB / 0.739 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.6529, allocations: 60 kB / 0.7391 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.6529, allocations: 36 kB / 0.7391 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.6556, allocations: 1.481 MB / 0.7406 GB, free: 9.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009963/0.6656, allocations: 7.115 MB / 0.7475 GB, free: 1.973 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002963/0.6686, allocations: 1.551 MB / 0.749 GB, free: 384 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.67, allocations: 0.7549 MB / 0.7498 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007778/0.6778, allocations: 5.959 MB / 0.7556 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.6779, allocations: 51.81 kB / 0.7556 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 4.639e-06/0.678, allocations: 4 kB / 0.7556 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.007554/0.6855, allocations: 3.128 MB / 0.7587 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.6857, allocations: 175.1 kB / 0.7589 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.6875, allocations: 1.095 MB / 0.7599 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001975/0.6877, allocations: 57.7 kB / 0.76 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005961/0.6883, allocations: 0.6927 MB / 0.7607 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006625/0.689, allocations: 0.5659 MB / 0.7612 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005359/0.6895, allocations: 287.5 kB / 0.7615 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.6897, allocations: 301.1 kB / 0.7618 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.6908, allocations: 0.492 MB / 0.7623 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.6922, allocations: 0.8211 MB / 0.7631 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002524/0.6948, allocations: 1.441 MB / 0.7645 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/0.6948, allocations: 8.812 kB / 0.7645 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003852/0.6987, allocations: 1.834 MB / 0.7663 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.6987, allocations: 11.94 kB / 0.7663 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.6987, allocations: 8 kB / 0.7663 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009601/0.6997, allocations: 228.5 kB / 0.7665 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.7013, allocations: 383.5 kB / 0.7669 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007384/0.7087, allocations: 7.685 MB / 0.7744 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.7102, allocations: 166.2 kB / 0.7745 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003444/0.7106, allocations: 71.98 kB / 0.7746 GB, free: 4.133 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009363/0.7115, allocations: 325.5 kB / 0.7749 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000638/0.7122, allocations: 166 kB / 0.7751 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004567/0.7167, allocations: 2.047 MB / 0.7771 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/0.7168, allocations: 20 kB / 0.7771 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.7168, allocations: 8 kB / 0.7771 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.7168, allocations: 7.969 kB / 0.7771 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007362/0.7242, allocations: 3.869 MB / 0.7809 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.7243, allocations: 4 kB / 0.7809 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.7254, allocations: 259.7 kB / 0.7811 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/0.7273, allocations: 471.5 kB / 0.7816 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/0.7275, allocations: 59.97 kB / 0.7816 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007471/0.7349, allocations: 9.984 MB / 0.7914 GB, free: 1.914 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.735, allocations: 7.938 kB / 0.7914 GB, free: 1.906 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00524/0.7402, allocations: 2.842 MB / 0.7942 GB, free: 15 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005754/0.7408, allocations: 262.5 kB / 0.7944 GB, free: 14.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003102/0.7411, allocations: 43.98 kB / 0.7945 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.7423, allocations: 59.97 kB / 0.7945 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002695/0.7426, allocations: 124.6 kB / 0.7946 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/0.7428, allocations: 71.95 kB / 0.7947 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001105/0.7439, allocations: 0.7717 MB / 0.7955 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7439, allocations: 0 / 0.7955 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00229/0.7462, allocations: 0.7725 MB / 0.7962 GB, free: 12.88 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.inlet.m_flow) * 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 (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001341/0.7475, allocations: 0.7577 MB / 0.797 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003803/0.7514, allocations: 2.057 MB / 0.799 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.7514, allocations: 0 / 0.799 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002504/0.7539, allocations: 1.44 MB / 0.8004 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/0.757, allocations: 0.6026 MB / 0.801 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006236/0.7632, allocations: 3.606 MB / 0.8045 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009826/0.7642, allocations: 1.273 MB / 0.8057 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001393/0.7656, allocations: 328.6 kB / 0.806 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/0.7661, allocations: 155.3 kB / 0.8062 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of SimCode: time 7.61e-07/0.7661, allocations: 0 / 0.8062 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of Templates: time 0.2708/1.037, allocations: 36.14 MB / 0.8415 GB, free: 234.8 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches