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.001445/0.001445, allocations: 110.4 kB / 18.94 MB, free: 2.812 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.00189/0.00189, allocations: 219 kB / 22.25 MB, free: 5.184 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 7.996 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.8078/0.8078, allocations: 100.3 MB / 412.7 MB, free: 4.023 MB / 318.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",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.002585/0.002585, allocations: 83.33 kB / 0.5633 GB, free: 35.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1325, allocations: 74.47 MB / 0.636 GB, free: 7.699 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.5287/0.6612, allocations: 150.3 MB / 0.7827 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.005589/0.6668, allocations: 4.671 MB / 0.7873 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007708/0.6675, allocations: 40.5 kB / 0.7873 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008496/0.6684, allocations: 291.6 kB / 0.7876 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001825/0.6702, allocations: 0.6817 MB / 0.7883 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001364/0.6716, allocations: 0.5142 MB / 0.7888 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001162/0.6727, allocations: 1.003 MB / 0.7897 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.673, allocations: 100.9 kB / 0.7898 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.6742, allocations: 0.5466 MB / 0.7904 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005785/0.6748, allocations: 478 kB / 0.7908 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.527e-05/0.6748, allocations: 43.19 kB / 0.7909 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.6765, allocations: 0.7901 MB / 0.7916 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.6767, allocations: 122.4 kB / 0.7918 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002821/0.6769, allocations: 309.8 kB / 0.792 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.6785, allocations: 0.9792 MB / 0.793 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.6785, allocations: 0 / 0.793 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6785, allocations: 0 / 0.793 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.383e-05/0.6785, allocations: 5.031 kB / 0.793 GB, free: 14.62 MB / 0.5919 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.001565/0.6801, allocations: 0.9174 MB / 0.7939 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.6801, allocations: 9.406 kB / 0.7939 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.725e-05/0.6802, allocations: 78.84 kB / 0.794 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.6803, allocations: 77.44 kB / 0.7941 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.6814, allocations: 483.3 kB / 0.7945 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.6814, allocations: 31.06 kB / 0.7946 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.6815, allocations: 43.47 kB / 0.7946 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009381/0.6824, allocations: 0.5184 MB / 0.7951 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.6824, allocations: 0 / 0.7951 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.6825, allocations: 17.34 kB / 0.7951 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.6825, allocations: 10.75 kB / 0.7951 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.6832, allocations: 496.4 kB / 0.7956 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.6861, allocations: 2.15 MB / 0.7977 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.6868, allocations: 337.1 kB / 0.798 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.687, allocations: 181 kB / 0.7982 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001797/0.6888, allocations: 0.9239 MB / 0.7991 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.6889, allocations: 40.91 kB / 0.7991 GB, free: 12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.583e-06/0.6889, allocations: 0 / 0.7991 GB, free: 12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001441/0.6903, allocations: 0.6479 MB / 0.7998 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.6903, allocations: 56.62 kB / 0.7998 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/0.6908, allocations: 482.1 kB / 0.8003 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.6908, allocations: 35.14 kB / 0.8003 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.691, allocations: 268.6 kB / 0.8006 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.6911, allocations: 172.4 kB / 0.8007 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.6912, allocations: 83.86 kB / 0.8008 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000234/0.6914, allocations: 372.9 kB / 0.8012 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.6917, allocations: 127.5 kB / 0.8013 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.6919, allocations: 185.7 kB / 0.8015 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.6924, allocations: 340 kB / 0.8018 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6924, allocations: 0 / 0.8018 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000865/0.6933, allocations: 0.5051 MB / 0.8023 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.735e-05/0.6934, allocations: 12.5 kB / 0.8023 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.6934, allocations: 0 / 0.8023 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002645/0.6936, allocations: 64.19 kB / 0.8024 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.6939, allocations: 87.11 kB / 0.8024 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.6965, allocations: 2.73 MB / 0.8051 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.6967, allocations: 42.86 kB / 0.8052 GB, free: 8.387 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.6967, allocations: 22.66 kB / 0.8052 GB, free: 8.383 MB / 0.5919 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.0002056/0.6969, allocations: 166.6 kB / 0.8053 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.807e-05/0.697, allocations: 68.2 kB / 0.8054 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.6983, allocations: 0.7106 MB / 0.8061 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.6983, allocations: 5.312 kB / 0.8061 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.6983, allocations: 1.125 kB / 0.8061 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.6983, allocations: 1.406 kB / 0.8061 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.7002, allocations: 1.166 MB / 0.8072 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.7002, allocations: 0 / 0.8072 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.7004, allocations: 75.09 kB / 0.8073 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.7006, allocations: 72.19 kB / 0.8074 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.7006, allocations: 18.42 kB / 0.8074 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/0.7031, allocations: 2.724 MB / 0.8101 GB, free: 5.207 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7031, allocations: 4.125 kB / 0.8101 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.7042, allocations: 0.7634 MB / 0.8108 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.849e-05/0.7043, allocations: 62.31 kB / 0.8109 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.7043, allocations: 21.08 kB / 0.8109 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003336/0.7047, allocations: 16.66 kB / 0.8109 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.614e-05/0.7047, allocations: 39.64 kB / 0.8109 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/0.7048, allocations: 15.95 kB / 0.811 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003426/0.7051, allocations: 374.4 kB / 0.8113 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.7051, allocations: 0 / 0.8113 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005867/0.7057, allocations: 191 kB / 0.8115 GB, free: 4.793 MB / 0.5919 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.001893/0.7076, allocations: 1.484 MB / 0.8129 GB, free: 3.965 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001024/0.7086, allocations: 0.5694 MB / 0.8135 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.7086, allocations: 0 / 0.8135 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005235/0.7091, allocations: 429.5 kB / 0.8139 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000878/0.71, allocations: 179.9 kB / 0.8141 GB, free: 3.359 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006597/0.7166, allocations: 4.761 MB / 0.8187 GB, free: 308 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.7171, allocations: 0.8709 MB / 0.8196 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003258/0.7174, allocations: 128.8 kB / 0.8197 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/0.7178, allocations: 238.4 kB / 0.8199 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.7178, allocations: 0 / 0.8199 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06064/0.7785, allocations: 17.05 MB / 0.8366 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.77, allocations: 10.97 kB / 0.8366 GB, free: 6.703 MB / 0.6075 GB " [Timeout remaining time 646] (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: 17.439100291812792]