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-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.001191, allocations: 188.5 kB / 16.25 MB, free: 6.637 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.179/1.179, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.55/0.55, allocations: 91.2 MB / 381.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 80.38 kB / 459.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09263, allocations: 67.7 MB / 0.5153 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3113/0.4039, allocations: 147.9 MB / 0.6597 GB, free: 3.957 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004678/0.4086, allocations: 4.682 MB / 0.6643 GB, free: 136 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005404/0.4092, allocations: 32.91 kB / 0.6643 GB, free: 120 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007214/0.41, allocations: 255.2 kB / 0.6645 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.4113, allocations: 0.6166 MB / 0.6651 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008869/0.4122, allocations: 461.1 kB / 0.6656 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008884/0.4131, allocations: 0.9831 MB / 0.6665 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.4133, allocations: 150.2 kB / 0.6667 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007971/0.4141, allocations: 0.5235 MB / 0.6672 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005026/0.4146, allocations: 467 kB / 0.6676 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.841e-05/0.4147, allocations: 45.38 kB / 0.6677 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.4159, allocations: 0.7699 MB / 0.6684 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.416, allocations: 119.4 kB / 0.6685 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002514/0.4162, allocations: 315.8 kB / 0.6688 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.4172, allocations: 0.9418 MB / 0.6698 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.4172, allocations: 3.938 kB / 0.6698 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4173, allocations: 4 kB / 0.6698 GB, free: 12.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.4173, allocations: 0 / 0.6698 GB, free: 12.57 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.001348/0.4186, allocations: 0.9684 MB / 0.6707 GB, free: 11.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.4187, allocations: 7.969 kB / 0.6707 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.816e-05/0.4188, allocations: 81.2 kB / 0.6708 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.4189, allocations: 70.88 kB / 0.6709 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005978/0.4195, allocations: 0.5127 MB / 0.6714 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.4195, allocations: 34.94 kB / 0.6714 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.696e-05/0.4196, allocations: 43.97 kB / 0.6714 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/0.4203, allocations: 0.5002 MB / 0.6719 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4203, allocations: 3.938 kB / 0.6719 GB, free: 10.85 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.4203, allocations: 21.31 kB / 0.672 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4203, allocations: 10.41 kB / 0.672 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006278/0.421, allocations: 486 kB / 0.6724 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.4231, allocations: 2.177 MB / 0.6746 GB, free: 8.602 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006304/0.4237, allocations: 362 kB / 0.6749 GB, free: 8.422 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.424, allocations: 205 kB / 0.6751 GB, free: 8.316 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002104/0.4261, allocations: 1.998 MB / 0.677 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.4262, allocations: 41.69 kB / 0.6771 GB, free: 6.219 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.443e-06/0.4262, allocations: 0 / 0.6771 GB, free: 6.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001385/0.4276, allocations: 0.7937 MB / 0.6779 GB, free: 5.691 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.4276, allocations: 56.88 kB / 0.6779 GB, free: 5.629 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.428, allocations: 490.4 kB / 0.6784 GB, free: 5.336 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.4281, allocations: 29.7 kB / 0.6784 GB, free: 5.301 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4282, allocations: 270.2 kB / 0.6787 GB, free: 5.062 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4284, allocations: 159.5 kB / 0.6788 GB, free: 4.922 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.4285, allocations: 87.28 kB / 0.6789 GB, free: 4.863 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4286, allocations: 369.5 kB / 0.6793 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002172/0.4288, allocations: 130 kB / 0.6794 GB, free: 4.445 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.4291, allocations: 181.7 kB / 0.6796 GB, free: 4.332 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004875/0.4296, allocations: 343 kB / 0.6799 GB, free: 4.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.4296, allocations: 2.531 kB / 0.6799 GB, free: 4.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007647/0.4304, allocations: 0.5004 MB / 0.6804 GB, free: 3.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.4304, allocations: 5.656 kB / 0.6804 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.4304, allocations: 2.125 kB / 0.6804 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.4306, allocations: 75.94 kB / 0.6805 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.4309, allocations: 89.05 kB / 0.6805 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.4328, allocations: 2.93 MB / 0.6834 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.4331, allocations: 44.42 kB / 0.6834 GB, free: 0.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.4331, allocations: 16.25 kB / 0.6835 GB, free: 0.7461 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.0001795/0.4333, allocations: 180.7 kB / 0.6836 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.538e-05/0.4334, allocations: 60.38 kB / 0.6837 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.4345, allocations: 0.7053 MB / 0.6844 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4345, allocations: 5.562 kB / 0.6844 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.4345, allocations: 0 / 0.6844 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4345, allocations: 3.984 kB / 0.6844 GB, free: 100 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.4361, allocations: 1.189 MB / 0.6855 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4361, allocations: 2.406 kB / 0.6855 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/0.4363, allocations: 85.48 kB / 0.6856 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.4365, allocations: 64.94 kB / 0.6857 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.4366, allocations: 11.84 kB / 0.6857 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.4384, allocations: 2.931 MB / 0.6886 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4384, allocations: 6.156 kB / 0.6886 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.4394, allocations: 0.7617 MB / 0.6893 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.4395, allocations: 137.7 kB / 0.6894 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.4396, allocations: 16.72 kB / 0.6895 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.4398, allocations: 21.17 kB / 0.6895 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.4399, allocations: 37.58 kB / 0.6895 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.4399, allocations: 24.34 kB / 0.6895 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003304/0.4403, allocations: 368.8 kB / 0.6899 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4403, allocations: 0 / 0.6899 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004897/0.4408, allocations: 193.5 kB / 0.6901 GB, free: 11.18 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.001491/0.4423, allocations: 1.465 MB / 0.6915 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009461/0.4432, allocations: 0.612 MB / 0.6921 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4433, allocations: 0 / 0.6921 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005152/0.4438, allocations: 437.1 kB / 0.6925 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008812/0.4447, allocations: 192.1 kB / 0.6927 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006093/0.4508, allocations: 5.102 MB / 0.6977 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.4512, allocations: 0.8711 MB / 0.6985 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000327/0.4515, allocations: 118.8 kB / 0.6986 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.4518, allocations: 239.3 kB / 0.6989 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.4518, allocations: 0 / 0.6989 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03207/0.4839, allocations: 16.28 MB / 0.7148 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.4841, allocations: 245.9 kB / 0.715 GB, free: 2.047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.403, allocations: 0 / 0.715 GB, free: 2.047 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches