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-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.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.001343/0.001343, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.001438/0.001438, allocations: 195.7 kB / 17.3 MB, free: 5.516 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7075/0.7075, allocations: 89.5 MB / 380.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 75.88 kB / 459.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1264, allocations: 67.31 MB / 0.5146 GB, free: 7.176 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.3967/0.5232, allocations: 189 MB / 0.6992 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02221/0.5455, allocations: 17.71 MB / 0.7165 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002102/0.5476, allocations: 27.88 kB / 0.7165 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.5503, allocations: 0.9783 MB / 0.7174 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006275/0.5567, allocations: 2.274 MB / 0.7197 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005074/0.5618, allocations: 1.835 MB / 0.7214 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004966/0.5668, allocations: 3.397 MB / 0.7248 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006793/0.5674, allocations: 438 kB / 0.7252 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002742/0.5702, allocations: 1.456 MB / 0.7266 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.5725, allocations: 1.522 MB / 0.7281 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000311/0.5728, allocations: 168 kB / 0.7282 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005853/0.5786, allocations: 2.57 MB / 0.7308 GB, free: 9.742 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004738/0.5791, allocations: 442.2 kB / 0.7312 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.5804, allocations: 1.026 MB / 0.7322 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005403/0.5858, allocations: 3.034 MB / 0.7351 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5859, allocations: 0 / 0.7351 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.404e-06/0.5859, allocations: 0 / 0.7351 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.548e-05/0.5859, allocations: 1.219 kB / 0.7351 GB, free: 5.238 MB / 0.5762 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.004243/0.5902, allocations: 2.417 MB / 0.7375 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.5902, allocations: 8.031 kB / 0.7375 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.5909, allocations: 226.4 kB / 0.7377 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.5923, allocations: 0.9532 MB / 0.7387 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.5924, allocations: 111.2 kB / 0.7388 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.5926, allocations: 152.9 kB / 0.7389 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2461/0.8387, allocations: 1.639 MB / 0.7405 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.079e-05/0.8388, allocations: 0 / 0.7405 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002888/0.8391, allocations: 64.25 kB / 0.7406 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-05/0.8392, allocations: 35.25 kB / 0.7406 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003031/0.8422, allocations: 1.482 MB / 0.7421 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008538/0.8508, allocations: 7.077 MB / 0.749 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/0.8535, allocations: 1.552 MB / 0.7505 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.8545, allocations: 0.7499 MB / 0.7512 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005628/0.8602, allocations: 5.955 MB / 0.757 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.8602, allocations: 65.34 kB / 0.7571 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=166): time 4.138e-06/0.8603, allocations: 0 / 0.7571 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=166): time 0.006326/0.8666, allocations: 3.123 MB / 0.7601 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.8667, allocations: 174.7 kB / 0.7603 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.8681, allocations: 1.093 MB / 0.7614 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.8683, allocations: 60.05 kB / 0.7614 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/0.8687, allocations: 0.6869 MB / 0.7621 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003775/0.8691, allocations: 0.569 MB / 0.7627 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004159/0.8695, allocations: 293.7 kB / 0.7629 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.8696, allocations: 302.7 kB / 0.7632 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008891/0.8705, allocations: 497.9 kB / 0.7637 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.8716, allocations: 0.8319 MB / 0.7645 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.8737, allocations: 1.43 MB / 0.7659 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.8738, allocations: 4.969 kB / 0.7659 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003615/0.8774, allocations: 1.835 MB / 0.7677 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.8774, allocations: 8.25 kB / 0.7677 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.8775, allocations: 13.88 kB / 0.7677 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008197/0.8783, allocations: 230.4 kB / 0.7679 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.8797, allocations: 383.2 kB / 0.7683 GB, free: 169.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004714/0.8844, allocations: 7.681 MB / 0.7758 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.8859, allocations: 163.9 kB / 0.776 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002944/0.8863, allocations: 75.8 kB / 0.776 GB, free: 161.9 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.0008284/0.8871, allocations: 332.6 kB / 0.7764 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006043/0.8877, allocations: 162.2 kB / 0.7765 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/0.8921, allocations: 2.044 MB / 0.7785 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/0.8921, allocations: 17.06 kB / 0.7785 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.628e-05/0.8921, allocations: 5.359 kB / 0.7785 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-05/0.8922, allocations: 7.828 kB / 0.7785 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00721/0.8994, allocations: 3.876 MB / 0.7823 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.8994, allocations: 9.219 kB / 0.7823 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.9005, allocations: 255.8 kB / 0.7826 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.9024, allocations: 474.2 kB / 0.783 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000167/0.9026, allocations: 55.42 kB / 0.7831 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005825/0.9084, allocations: 9.972 MB / 0.7928 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.9085, allocations: 2.75 kB / 0.7928 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005524/0.914, allocations: 2.86 MB / 0.7956 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007387/0.9148, allocations: 256.6 kB / 0.7959 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004611/0.9152, allocations: 45.59 kB / 0.7959 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.9166, allocations: 56.38 kB / 0.796 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.917, allocations: 133.3 kB / 0.7961 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/0.9172, allocations: 67.69 kB / 0.7962 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001344/0.9186, allocations: 0.7704 MB / 0.7969 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.11e-07/0.9186, allocations: 0 / 0.7969 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002764/0.9214, allocations: 0.7721 MB / 0.7977 GB, free: 146.7 MB / 0.5762 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.001592/0.923, allocations: 0.7612 MB / 0.7984 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003888/0.9269, allocations: 1.985 MB / 0.8003 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.9269, allocations: 3.156 kB / 0.8003 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002773/0.9297, allocations: 1.439 MB / 0.8017 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003631/0.9333, allocations: 0.5973 MB / 0.8023 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007128/0.9405, allocations: 3.572 MB / 0.8058 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.9418, allocations: 1.273 MB / 0.8071 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002163/0.944, allocations: 328.3 kB / 0.8074 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/0.9448, allocations: 146.8 kB / 0.8075 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.112e-06/0.9448, allocations: 0 / 0.8075 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.05446/0.9992, allocations: 36.17 MB / 0.8428 GB, free: 114.1 MB / 0.5762 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches