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.001563/0.001563, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.00174/0.00174, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.7774/0.7774, allocations: 100.3 MB / 413.5 MB, free: 3.676 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="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.00245/0.00245, allocations: 82.05 kB / 0.564 GB, free: 35.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1448, allocations: 74.46 MB / 0.6367 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.5411/0.6858, allocations: 150.3 MB / 0.7835 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.005703/0.6915, allocations: 4.674 MB / 0.788 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000879/0.6924, allocations: 40.81 kB / 0.7881 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.6935, allocations: 295.4 kB / 0.7884 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.6955, allocations: 0.6794 MB / 0.789 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001492/0.697, allocations: 0.5183 MB / 0.7895 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001362/0.6983, allocations: 0.9939 MB / 0.7905 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.6986, allocations: 109.6 kB / 0.7906 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.6996, allocations: 0.5453 MB / 0.7911 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005759/0.7002, allocations: 470.7 kB / 0.7916 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.817e-05/0.7003, allocations: 47.72 kB / 0.7916 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.7019, allocations: 0.7825 MB / 0.7924 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.7021, allocations: 123 kB / 0.7925 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002935/0.7024, allocations: 315.6 kB / 0.7928 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.7038, allocations: 0.9734 MB / 0.7938 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.7038, allocations: 2.625 kB / 0.7938 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7038, allocations: 1.203 kB / 0.7938 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.7038, allocations: 0 / 0.7938 GB, free: 14.58 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.001505/0.7053, allocations: 0.9164 MB / 0.7947 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.7053, allocations: 9.969 kB / 0.7947 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.291e-05/0.7054, allocations: 16.19 kB / 0.7947 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.37e-05/0.7054, allocations: 79.3 kB / 0.7948 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.7056, allocations: 79.12 kB / 0.7948 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008726/0.7064, allocations: 481.8 kB / 0.7953 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.7065, allocations: 32.53 kB / 0.7953 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.7065, allocations: 44 kB / 0.7954 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007606/0.7073, allocations: 0.5134 MB / 0.7959 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.7073, allocations: 9.25 kB / 0.7959 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.7074, allocations: 17.16 kB / 0.7959 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.7074, allocations: 10.19 kB / 0.7959 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007148/0.7081, allocations: 497.8 kB / 0.7964 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002804/0.7109, allocations: 2.14 MB / 0.7985 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.7116, allocations: 330.6 kB / 0.7988 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.7119, allocations: 185.5 kB / 0.799 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001828/0.7137, allocations: 0.9355 MB / 0.7999 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.7138, allocations: 37.03 kB / 0.7999 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.793e-06/0.7138, allocations: 0 / 0.7999 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001448/0.7152, allocations: 0.6414 MB / 0.8005 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.7153, allocations: 57.12 kB / 0.8006 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004598/0.7157, allocations: 486.9 kB / 0.8011 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.7157, allocations: 32.58 kB / 0.8011 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.7159, allocations: 273.4 kB / 0.8014 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.716, allocations: 174 kB / 0.8015 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.7162, allocations: 81.38 kB / 0.8016 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.7163, allocations: 373.6 kB / 0.802 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.7166, allocations: 125.3 kB / 0.8021 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.7168, allocations: 183.8 kB / 0.8023 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005018/0.7173, allocations: 345.5 kB / 0.8026 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.7173, allocations: 0 / 0.8026 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008128/0.7181, allocations: 0.5016 MB / 0.8031 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.7182, allocations: 9.531 kB / 0.8031 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.7182, allocations: 0 / 0.8031 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.7184, allocations: 71.02 kB / 0.8031 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.7187, allocations: 93.33 kB / 0.8032 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.721, allocations: 2.721 MB / 0.8059 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.7213, allocations: 40.61 kB / 0.8059 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.7214, allocations: 19.55 kB / 0.806 GB, free: 8.332 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.0002384/0.7216, allocations: 169.6 kB / 0.8061 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.7217, allocations: 64.73 kB / 0.8062 GB, free: 8.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.7229, allocations: 0.7093 MB / 0.8069 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.7229, allocations: 6.438 kB / 0.8069 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.7229, allocations: 0 / 0.8069 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.7229, allocations: 5.719 kB / 0.8069 GB, free: 8.027 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.7246, allocations: 1.157 MB / 0.808 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.7246, allocations: 2.312 kB / 0.808 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.7249, allocations: 74.98 kB / 0.8081 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002148/0.7251, allocations: 75.05 kB / 0.8082 GB, free: 7.637 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.7251, allocations: 20.47 kB / 0.8082 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.7274, allocations: 2.723 MB / 0.8108 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7274, allocations: 3.625 kB / 0.8108 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.7286, allocations: 0.762 MB / 0.8116 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.7287, allocations: 62.66 kB / 0.8116 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.107e-05/0.7288, allocations: 18.28 kB / 0.8117 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.729, allocations: 12.06 kB / 0.8117 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.04e-05/0.7291, allocations: 45.7 kB / 0.8117 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.7291, allocations: 19.48 kB / 0.8117 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003896/0.7295, allocations: 372.1 kB / 0.8121 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.7295, allocations: 0 / 0.8121 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006753/0.7302, allocations: 193.2 kB / 0.8123 GB, free: 4.754 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.001746/0.7319, allocations: 1.483 MB / 0.8137 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001028/0.7329, allocations: 0.5698 MB / 0.8143 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.7329, allocations: 0 / 0.8143 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006642/0.7336, allocations: 434.7 kB / 0.8147 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000983/0.7346, allocations: 184.8 kB / 0.8149 GB, free: 3.309 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006756/0.7414, allocations: 4.761 MB / 0.8195 GB, free: 292 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.7419, allocations: 0.8719 MB / 0.8204 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003657/0.7423, allocations: 118 kB / 0.8205 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003241/0.7426, allocations: 234.5 kB / 0.8207 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of SimCode: time 1.052e-06/0.7426, allocations: 2.844 kB / 0.8207 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04963/0.7922, allocations: 17.08 MB / 0.8374 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.58, allocations: 4 kB / 0.8374 GB, free: 6.664 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.302584027987905]