Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 108 kB / 15.6 MB, free: 132 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.001147/0.001147, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6332/0.6332, allocations: 89.47 MB / 379.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 85.58 kB / 458.2 MB, free: 23.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1195, allocations: 67.3 MB / 0.5132 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4031/0.5227, allocations: 149.4 MB / 0.659 GB, free: 5.297 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005404/0.5281, allocations: 4.578 MB / 0.6635 GB, free: 1.562 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005239/0.5287, allocations: 15.28 kB / 0.6635 GB, free: 1.555 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009446/0.5297, allocations: 283.6 kB / 0.6638 GB, free: 1.32 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001668/0.5314, allocations: 0.6163 MB / 0.6644 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.5326, allocations: 0.4891 MB / 0.6649 GB, free: 456 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.5338, allocations: 0.8777 MB / 0.6657 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003016/0.5342, allocations: 159.8 kB / 0.6659 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009816/0.5351, allocations: 472.5 kB / 0.6663 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006166/0.5358, allocations: 444.7 kB / 0.6668 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.815e-05/0.5359, allocations: 45.38 kB / 0.6668 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.5375, allocations: 0.768 MB / 0.6676 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.5376, allocations: 113 kB / 0.6677 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.5379, allocations: 285.8 kB / 0.6679 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001607/0.5395, allocations: 0.8443 MB / 0.6688 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5395, allocations: 0 / 0.6688 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5396, allocations: 0 / 0.6688 GB, free: 14.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.5396, allocations: 0 / 0.6688 GB, free: 14.14 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001504/0.5411, allocations: 0.8553 MB / 0.6696 GB, free: 13.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.5411, allocations: 10.03 kB / 0.6696 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.5413, allocations: 58.56 kB / 0.6697 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.5417, allocations: 378.4 kB / 0.67 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.5418, allocations: 35.56 kB / 0.6701 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/0.5418, allocations: 43.53 kB / 0.6701 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.5426, allocations: 0.5128 MB / 0.6706 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.5426, allocations: 0 / 0.6706 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/0.5427, allocations: 21.03 kB / 0.6706 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.5427, allocations: 9.969 kB / 0.6706 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007187/0.5434, allocations: 486 kB / 0.6711 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.5461, allocations: 2.145 MB / 0.6732 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007819/0.5469, allocations: 370.2 kB / 0.6735 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003347/0.5473, allocations: 203.6 kB / 0.6737 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00293/0.5502, allocations: 1.997 MB / 0.6757 GB, free: 8.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.5503, allocations: 38.31 kB / 0.6757 GB, free: 8.055 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.315e-06/0.5503, allocations: 0 / 0.6757 GB, free: 8.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.00174/0.552, allocations: 0.785 MB / 0.6765 GB, free: 7.531 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.5521, allocations: 61.09 kB / 0.6766 GB, free: 7.465 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/0.5525, allocations: 373.1 kB / 0.6769 GB, free: 7.234 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.5525, allocations: 32.05 kB / 0.6769 GB, free: 7.199 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.5527, allocations: 220.9 kB / 0.6771 GB, free: 6.996 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.5529, allocations: 161.2 kB / 0.6773 GB, free: 6.855 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.553, allocations: 79.06 kB / 0.6774 GB, free: 6.805 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.5532, allocations: 356.9 kB / 0.6777 GB, free: 6.457 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.5535, allocations: 132.9 kB / 0.6778 GB, free: 6.395 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.5538, allocations: 189.6 kB / 0.678 GB, free: 6.273 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.5544, allocations: 342.5 kB / 0.6784 GB, free: 6.078 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5544, allocations: 0 / 0.6784 GB, free: 6.078 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009654/0.5554, allocations: 0.4888 MB / 0.6788 GB, free: 5.809 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.5554, allocations: 7.156 kB / 0.6788 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.5554, allocations: 2.5 kB / 0.6788 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000296/0.5557, allocations: 68.08 kB / 0.6789 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.556, allocations: 88.7 kB / 0.679 GB, free: 5.742 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.5587, allocations: 2.925 MB / 0.6818 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003241/0.5591, allocations: 53.53 kB / 0.6819 GB, free: 2.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.733e-05/0.5591, allocations: 22.92 kB / 0.6819 GB, free: 2.699 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002289/0.5594, allocations: 166 kB / 0.6821 GB, free: 2.547 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.5595, allocations: 43.19 kB / 0.6821 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.5609, allocations: 0.7014 MB / 0.6828 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.5609, allocations: 9.062 kB / 0.6828 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.5609, allocations: 3.938 kB / 0.6828 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.5609, allocations: 3.984 kB / 0.6828 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.5628, allocations: 1.155 MB / 0.6839 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.5628, allocations: 0 / 0.6839 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.563, allocations: 75.97 kB / 0.684 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002348/0.5633, allocations: 69.14 kB / 0.6841 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.5633, allocations: 15.75 kB / 0.6841 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.5658, allocations: 2.929 MB / 0.687 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5658, allocations: 0 / 0.687 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.5671, allocations: 0.7495 MB / 0.6877 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.5672, allocations: 125.2 kB / 0.6878 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.116e-05/0.5673, allocations: 16.83 kB / 0.6878 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.5675, allocations: 13.09 kB / 0.6878 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.876e-05/0.5677, allocations: 45.33 kB / 0.6879 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.5677, allocations: 24.52 kB / 0.6879 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003205/0.568, allocations: 287.4 kB / 0.6882 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.568, allocations: 0 / 0.6882 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006448/0.5687, allocations: 190.9 kB / 0.6884 GB, free: 13.22 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005343/0.5692, allocations: 277.9 kB / 0.6886 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001158/0.5704, allocations: 0.6062 MB / 0.6892 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.5704, allocations: 0 / 0.6892 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005746/0.571, allocations: 444.3 kB / 0.6896 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.572, allocations: 179.3 kB / 0.6898 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.5739, allocations: 1.004 MB / 0.6908 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.5744, allocations: 0.8356 MB / 0.6916 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000386/0.5748, allocations: 106 kB / 0.6917 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.5749, allocations: 51.42 kB / 0.6918 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of SimCode: time 3.5e-07/0.5749, allocations: 4 kB / 0.6918 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of Templates: time 0.01786/0.5928, allocations: 10.19 MB / 0.7017 GB, free: 348 kB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches