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.00243/0.00243, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002319/0.002319, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.966/1.966, allocations: 230.6 MB / 256 MB, free: 7.777 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 1.101/1.101, allocations: 100.9 MB / 413.3 MB, free: 2.852 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.002755/0.002755, allocations: 83.7 kB / 0.5641 GB, free: 35.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2527, allocations: 74.62 MB / 0.6369 GB, free: 6.488 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.9493/1.202, allocations: 129.2 MB / 0.7631 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.008742/1.211, allocations: 4.235 MB / 0.7672 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/1.212, allocations: 37.88 kB / 0.7673 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001195/1.213, allocations: 272.3 kB / 0.7675 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00242/1.215, allocations: 0.668 MB / 0.7682 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00197/1.217, allocations: 0.5142 MB / 0.7687 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001796/1.219, allocations: 0.9903 MB / 0.7696 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/1.22, allocations: 97.22 kB / 0.7697 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001715/1.221, allocations: 0.5469 MB / 0.7703 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000822/1.222, allocations: 445.8 kB / 0.7707 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.878e-05/1.222, allocations: 43.75 kB / 0.7707 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002191/1.224, allocations: 0.6537 MB / 0.7714 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002487/1.225, allocations: 120.8 kB / 0.7715 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005906/1.225, allocations: 252.2 kB / 0.7717 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002813/1.228, allocations: 0.959 MB / 0.7727 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/1.228, allocations: 0.5 kB / 0.7727 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.877e-06/1.228, allocations: 0 / 0.7727 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.681e-05/1.228, allocations: 1.531 kB / 0.7727 GB, free: 2.969 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002601/1.231, allocations: 0.9104 MB / 0.7736 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.848e-05/1.231, allocations: 12.19 kB / 0.7736 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/1.231, allocations: 88.22 kB / 0.7737 GB, free: 18.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/1.231, allocations: 97.17 kB / 0.7738 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/1.233, allocations: 481.6 kB / 0.7742 GB, free: 18.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.698e-05/1.233, allocations: 35.14 kB / 0.7742 GB, free: 18.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/1.233, allocations: 42.94 kB / 0.7743 GB, free: 18.14 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/1.234, allocations: 0.5111 MB / 0.7748 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/1.234, allocations: 0 / 0.7748 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/1.234, allocations: 21.47 kB / 0.7748 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/1.234, allocations: 10.41 kB / 0.7748 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/1.235, allocations: 490.7 kB / 0.7753 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/1.239, allocations: 1.532 MB / 0.7768 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/1.24, allocations: 334.2 kB / 0.7771 GB, free: 17.37 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003903/1.24, allocations: 181.9 kB / 0.7773 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002491/1.243, allocations: 0.8434 MB / 0.7781 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/1.243, allocations: 43.52 kB / 0.7781 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.345e-06/1.243, allocations: 0 / 0.7781 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.00185/1.245, allocations: 0.6411 MB / 0.7788 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/1.245, allocations: 59.67 kB / 0.7788 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00077/1.246, allocations: 481.4 kB / 0.7793 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.042e-05/1.246, allocations: 35.86 kB / 0.7793 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/1.246, allocations: 274.1 kB / 0.7796 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/1.246, allocations: 166.6 kB / 0.7797 GB, free: 16.51 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/1.246, allocations: 81.88 kB / 0.7798 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000279/1.247, allocations: 371.6 kB / 0.7802 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/1.247, allocations: 126.9 kB / 0.7803 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/1.247, allocations: 186.1 kB / 0.7805 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007201/1.248, allocations: 341.2 kB / 0.7808 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/1.248, allocations: 0 / 0.7808 GB, free: 16.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00119/1.249, allocations: 0.4998 MB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/1.249, allocations: 7.469 kB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/1.249, allocations: 2.516 kB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004013/1.25, allocations: 66.47 kB / 0.7814 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/1.25, allocations: 93.39 kB / 0.7814 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/1.253, allocations: 2.706 MB / 0.7841 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/1.253, allocations: 42.02 kB / 0.7841 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.293e-05/1.253, allocations: 20.61 kB / 0.7841 GB, free: 13.51 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.0003502/1.254, allocations: 166.7 kB / 0.7843 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/1.254, allocations: 68.86 kB / 0.7844 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/1.255, allocations: 0.6808 MB / 0.785 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-06/1.255, allocations: 5.375 kB / 0.785 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/1.255, allocations: 1.469 kB / 0.785 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.255, allocations: 4.156 kB / 0.785 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/1.257, allocations: 1.049 MB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/1.257, allocations: 0.9062 kB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/1.257, allocations: 70.44 kB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/1.258, allocations: 68.67 kB / 0.7862 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/1.258, allocations: 10.69 kB / 0.7862 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/1.26, allocations: 2.716 MB / 0.7889 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.26, allocations: 5.094 kB / 0.7889 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/1.262, allocations: 0.7423 MB / 0.7896 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/1.262, allocations: 63.83 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.239e-05/1.262, allocations: 16.03 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/1.262, allocations: 8.469 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/1.262, allocations: 37.31 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/1.263, allocations: 17.48 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005793/1.263, allocations: 371.7 kB / 0.7901 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.263, allocations: 0 / 0.7901 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009238/1.264, allocations: 176.2 kB / 0.7903 GB, free: 10.03 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 (39): * Single equations (assignments): 37 * 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.002106/1.266, allocations: 1.435 MB / 0.7917 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001237/1.267, allocations: 0.5608 MB / 0.7922 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.267, allocations: 1.203 kB / 0.7922 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006284/1.268, allocations: 420 kB / 0.7926 GB, free: 8.805 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/1.269, allocations: 183.3 kB / 0.7928 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008258/1.277, allocations: 4.732 MB / 0.7974 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/1.278, allocations: 274.3 kB / 0.7977 GB, free: 6.879 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005419/1.278, allocations: 115.7 kB / 0.7978 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004966/1.279, allocations: 229.7 kB / 0.798 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of SimCode: time 1.623e-06/1.279, allocations: 0 / 0.798 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06888/1.348, allocations: 17.57 MB / 0.8151 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.92, allocations: 11.73 kB / 0.8152 GB, free: 2.543 MB / 0.5919 GB " [Timeout remaining time 643] (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: 22.138754680752754]