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.001225/0.001225, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001242/0.001242, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.173/1.173, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5743/0.5743, allocations: 89.53 MB / 379.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 84.12 kB / 457.7 MB, free: 23.81 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09195/0.09329, allocations: 67.31 MB / 0.5127 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3191/0.4124, allocations: 147.6 MB / 0.6568 GB, free: 7.023 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004764/0.4172, allocations: 4.658 MB / 0.6613 GB, free: 3.234 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004974/0.4177, allocations: 11.28 kB / 0.6613 GB, free: 3.23 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007254/0.4185, allocations: 259.4 kB / 0.6616 GB, free: 3.02 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001353/0.4199, allocations: 0.5764 MB / 0.6621 GB, free: 2.559 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009637/0.4209, allocations: 457 kB / 0.6626 GB, free: 2.219 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000819/0.4217, allocations: 1.137 MB / 0.6637 GB, free: 1.586 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.4219, allocations: 149.9 kB / 0.6638 GB, free: 1.5 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006374/0.4225, allocations: 433.8 kB / 0.6642 GB, free: 1.254 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.423, allocations: 446.7 kB / 0.6647 GB, free: 1 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.423, allocations: 29.78 kB / 0.6647 GB, free: 1 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.4242, allocations: 0.7502 MB / 0.6654 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.154e-05/0.4243, allocations: 101 kB / 0.6655 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.4245, allocations: 269.9 kB / 0.6658 GB, free: 408 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008442/0.4253, allocations: 0.8372 MB / 0.6666 GB, free: 15.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.4253, allocations: 0 / 0.6666 GB, free: 15.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.4253, allocations: 0 / 0.6666 GB, free: 15.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.4254, allocations: 0 / 0.6666 GB, free: 15.86 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.001157/0.4265, allocations: 0.8591 MB / 0.6674 GB, free: 15.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.4266, allocations: 10.22 kB / 0.6675 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.435e-05/0.4266, allocations: 84.02 kB / 0.6675 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.292e-05/0.4267, allocations: 58.56 kB / 0.6676 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.4271, allocations: 382.5 kB / 0.668 GB, free: 14.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.4271, allocations: 31.56 kB / 0.668 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.4272, allocations: 48.16 kB / 0.668 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006685/0.4279, allocations: 0.5036 MB / 0.6685 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4279, allocations: 7 kB / 0.6685 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.4279, allocations: 14.28 kB / 0.6685 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.4279, allocations: 14.25 kB / 0.6686 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000638/0.4286, allocations: 482.9 kB / 0.669 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.4306, allocations: 2.152 MB / 0.6711 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006384/0.4313, allocations: 367.1 kB / 0.6715 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.4316, allocations: 205.3 kB / 0.6717 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002109/0.4337, allocations: 1.996 MB / 0.6736 GB, free: 9.738 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.4337, allocations: 43.42 kB / 0.6737 GB, free: 9.691 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.673e-06/0.4337, allocations: 0 / 0.6737 GB, free: 9.691 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.0014/0.4351, allocations: 0.7753 MB / 0.6744 GB, free: 9.176 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.4352, allocations: 61.44 kB / 0.6745 GB, free: 9.109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.4355, allocations: 373.5 kB / 0.6748 GB, free: 8.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.4355, allocations: 35.8 kB / 0.6749 GB, free: 8.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4357, allocations: 224.9 kB / 0.6751 GB, free: 8.633 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.4358, allocations: 161.9 kB / 0.6752 GB, free: 8.492 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.4359, allocations: 81.97 kB / 0.6753 GB, free: 8.438 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.436, allocations: 357.6 kB / 0.6756 GB, free: 8.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.4362, allocations: 124.7 kB / 0.6758 GB, free: 8.035 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.4365, allocations: 182.9 kB / 0.6759 GB, free: 7.918 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.437, allocations: 344.9 kB / 0.6763 GB, free: 7.723 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.437, allocations: 0 / 0.6763 GB, free: 7.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007668/0.4378, allocations: 498.1 kB / 0.6767 GB, free: 7.457 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.4378, allocations: 9.312 kB / 0.6768 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4378, allocations: 0 / 0.6768 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.4381, allocations: 67.64 kB / 0.6768 GB, free: 7.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.4383, allocations: 93.72 kB / 0.6769 GB, free: 7.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.4401, allocations: 2.715 MB / 0.6796 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.4404, allocations: 41.59 kB / 0.6796 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.4404, allocations: 26.67 kB / 0.6796 GB, free: 4.555 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.0001665/0.4406, allocations: 163.8 kB / 0.6798 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.736e-05/0.4407, allocations: 50 kB / 0.6798 GB, free: 4.375 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.4418, allocations: 0.7048 MB / 0.6805 GB, free: 3.922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.4418, allocations: 4.594 kB / 0.6805 GB, free: 3.922 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.4418, allocations: 4 kB / 0.6805 GB, free: 3.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.4418, allocations: 6.828 kB / 0.6805 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.4433, allocations: 1.149 MB / 0.6817 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4433, allocations: 0 / 0.6817 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.4436, allocations: 75.97 kB / 0.6817 GB, free: 3.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.4438, allocations: 69.39 kB / 0.6818 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.4438, allocations: 13 kB / 0.6818 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.4455, allocations: 2.739 MB / 0.6845 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4455, allocations: 0 / 0.6845 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.4466, allocations: 0.7512 MB / 0.6852 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.4467, allocations: 131.5 kB / 0.6853 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.4467, allocations: 8.5 kB / 0.6853 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.447, allocations: 17.28 kB / 0.6854 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.447, allocations: 41.36 kB / 0.6854 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.4471, allocations: 20.45 kB / 0.6854 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002564/0.4473, allocations: 293.8 kB / 0.6857 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4473, allocations: 0 / 0.6857 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005333/0.4479, allocations: 194.8 kB / 0.6859 GB, free: 15.27 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.001494/0.4494, allocations: 1.464 MB / 0.6873 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008228/0.4502, allocations: 0.5845 MB / 0.6879 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4502, allocations: 0 / 0.6879 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.4507, allocations: 440.3 kB / 0.6883 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000871/0.4516, allocations: 161.6 kB / 0.6885 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/0.4569, allocations: 4.549 MB / 0.6929 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.4573, allocations: 0.8356 MB / 0.6937 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003227/0.4576, allocations: 114.1 kB / 0.6938 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.4578, allocations: 183.4 kB / 0.694 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of SimCode: time 5.81e-07/0.4578, allocations: 0 / 0.694 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.4826, allocations: 14.55 MB / 0.7082 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.4828, allocations: 237.3 kB / 0.7084 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.333, allocations: 3.625 kB / 0.7084 GB, free: 9.578 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