Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002032/0.002032, allocations: 210.2 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6604/0.6604, allocations: 100.3 MB / 409.8 MB, free: 5.496 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 83.86 kB / 0.5589 GB, free: 14.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4148, allocations: 74.43 MB / 0.6315 GB, free: 2.449 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1801/0.595, allocations: 150.1 MB / 0.7781 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.006596/0.6015, allocations: 4.647 MB / 0.7827 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008924/0.6024, allocations: 39.62 kB / 0.7827 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.6037, allocations: 294 kB / 0.783 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.002253/0.6059, allocations: 0.6797 MB / 0.7836 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.6074, allocations: 0.5021 MB / 0.7841 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001795/0.6092, allocations: 0.984 MB / 0.7851 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.6095, allocations: 100 kB / 0.7852 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.6109, allocations: 0.5445 MB / 0.7857 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008588/0.6118, allocations: 470.1 kB / 0.7862 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.6118, allocations: 44 kB / 0.7862 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.6136, allocations: 0.7914 MB / 0.787 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.6137, allocations: 119.4 kB / 0.7871 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.614, allocations: 314.2 kB / 0.7874 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.6156, allocations: 0.9767 MB / 0.7883 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.6156, allocations: 0 / 0.7883 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.465e-06/0.6156, allocations: 0 / 0.7883 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.6156, allocations: 4 kB / 0.7883 GB, free: 2.367 MB / 0.6075 GB 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.001686/0.6173, allocations: 0.9843 MB / 0.7893 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.6174, allocations: 12.03 kB / 0.7893 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.867e-05/0.6174, allocations: 17.12 kB / 0.7893 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.489e-05/0.6175, allocations: 78.72 kB / 0.7894 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.6176, allocations: 72.47 kB / 0.7895 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000904/0.6185, allocations: 0.5487 MB / 0.79 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/0.6186, allocations: 37.36 kB / 0.7901 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.197e-05/0.6186, allocations: 48.12 kB / 0.7901 GB, free: 484 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008367/0.6195, allocations: 0.5045 MB / 0.7906 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.6195, allocations: 0 / 0.7906 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.6195, allocations: 19.94 kB / 0.7906 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.6195, allocations: 12 kB / 0.7906 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007883/0.6203, allocations: 487.6 kB / 0.7911 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002736/0.6231, allocations: 2.175 MB / 0.7932 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008118/0.6239, allocations: 332.4 kB / 0.7935 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003441/0.6242, allocations: 188.7 kB / 0.7937 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002737/0.627, allocations: 1.99 MB / 0.7957 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.627, allocations: 42.94 kB / 0.7957 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.627, allocations: 0 / 0.7957 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=47): time 0.001728/0.6287, allocations: 0.7992 MB / 0.7965 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.6288, allocations: 55.84 kB / 0.7965 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006125/0.6294, allocations: 483 kB / 0.797 GB, free: 8.836 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.6294, allocations: 37.7 kB / 0.797 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.6297, allocations: 265 kB / 0.7973 GB, free: 8.531 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.6298, allocations: 174.5 kB / 0.7974 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.6299, allocations: 86.12 kB / 0.7975 GB, free: 8.27 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002123/0.6301, allocations: 366.8 kB / 0.7979 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/0.6304, allocations: 128.8 kB / 0.798 GB, free: 7.777 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.6307, allocations: 181 kB / 0.7982 GB, free: 7.582 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006277/0.6314, allocations: 344.9 kB / 0.7985 GB, free: 7.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6314, allocations: 3.938 kB / 0.7985 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00102/0.6324, allocations: 0.505 MB / 0.799 GB, free: 6.711 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.6324, allocations: 4 kB / 0.799 GB, free: 6.707 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.6324, allocations: 7.938 kB / 0.799 GB, free: 6.699 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/0.6327, allocations: 65.55 kB / 0.7991 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.6331, allocations: 91.89 kB / 0.7992 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/0.6356, allocations: 2.919 MB / 0.802 GB, free: 3.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.6359, allocations: 39.7 kB / 0.802 GB, free: 3.301 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.156e-05/0.6359, allocations: 19.98 kB / 0.8021 GB, free: 3.281 MB / 0.6231 GB 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.0002371/0.6362, allocations: 181.8 kB / 0.8022 GB, free: 3.094 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.6363, allocations: 67.52 kB / 0.8023 GB, free: 3.027 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.6377, allocations: 0.7048 MB / 0.803 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.6377, allocations: 4 kB / 0.803 GB, free: 2.297 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.6377, allocations: 4 kB / 0.803 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.6377, allocations: 3.938 kB / 0.803 GB, free: 2.289 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.6396, allocations: 1.193 MB / 0.8042 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6396, allocations: 0 / 0.8042 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.6399, allocations: 71.91 kB / 0.8042 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.6401, allocations: 77.72 kB / 0.8043 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.6402, allocations: 19.92 kB / 0.8043 GB, free: 0.8516 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002447/0.6426, allocations: 2.927 MB / 0.8072 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.6426, allocations: 0 / 0.8072 GB, free: 13.64 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.6439, allocations: 0.7613 MB / 0.8079 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.6441, allocations: 148.6 kB / 0.8081 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.41e-05/0.6441, allocations: 8 kB / 0.8081 GB, free: 12.67 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.6444, allocations: 12 kB / 0.8081 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.6445, allocations: 39.88 kB / 0.8081 GB, free: 12.62 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.6445, allocations: 20.06 kB / 0.8081 GB, free: 12.6 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0004487/0.6449, allocations: 366.8 kB / 0.8085 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/0.6449, allocations: 0 / 0.8085 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.000676/0.6456, allocations: 199.6 kB / 0.8087 GB, free: 12.05 MB / 0.6387 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.001936/0.6476, allocations: 1.48 MB / 0.8101 GB, free: 10.54 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.6486, allocations: 0.5615 MB / 0.8107 GB, free: 9.945 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6486, allocations: 0 / 0.8107 GB, free: 9.945 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0006279/0.6493, allocations: 437 kB / 0.8111 GB, free: 9.492 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009618/0.6502, allocations: 189.5 kB / 0.8113 GB, free: 9.316 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007129/0.6574, allocations: 4.757 MB / 0.8159 GB, free: 4.41 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.6579, allocations: 0.8711 MB / 0.8168 GB, free: 3.512 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003864/0.6583, allocations: 125.2 kB / 0.8169 GB, free: 3.406 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.6586, allocations: 235.4 kB / 0.8171 GB, free: 3.176 MB / 0.6387 GB Notification: Performance of SimCode: time 1.162e-06/0.6586, allocations: 0 / 0.8171 GB, free: 3.176 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04595/0.7046, allocations: 16.79 MB / 0.8335 GB, free: 2.684 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/12.07, allocations: 12 kB / 0.8335 GB, free: 2.672 MB / 0.6544 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.886897071031854]