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.0008385/0.0008385, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00494/0.00494, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.164/1.164, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5288/0.5288, allocations: 89.63 MB / 381.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003026, allocations: 16.5 kB / 460.7 MB, free: 24.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09453, allocations: 68.84 MB / 0.5172 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3231/0.4177, allocations: 145.6 MB / 0.6594 GB, free: 5.07 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004399/0.4221, allocations: 4.601 MB / 0.6639 GB, free: 1.32 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002492/0.4224, allocations: 9.312 kB / 0.6639 GB, free: 1.316 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005576/0.4229, allocations: 250 kB / 0.6641 GB, free: 1.117 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009396/0.4239, allocations: 0.5831 MB / 0.6647 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007239/0.4246, allocations: 452.6 kB / 0.6651 GB, free: 320 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007834/0.4254, allocations: 1.141 MB / 0.6662 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.4256, allocations: 148.5 kB / 0.6664 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005833/0.4262, allocations: 418.1 kB / 0.6668 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003972/0.4266, allocations: 417.1 kB / 0.6672 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.692e-05/0.4267, allocations: 22.31 kB / 0.6672 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009984/0.4277, allocations: 0.7414 MB / 0.6679 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.4278, allocations: 87.05 kB / 0.668 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.428, allocations: 275.6 kB / 0.6682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007581/0.4287, allocations: 0.8237 MB / 0.6691 GB, free: 14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.4287, allocations: 0 / 0.6691 GB, free: 14 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4287, allocations: 0 / 0.6691 GB, free: 14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.4287, allocations: 3.938 kB / 0.6691 GB, free: 13.99 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.0009972/0.4297, allocations: 0.7665 MB / 0.6698 GB, free: 13.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.4298, allocations: 10.88 kB / 0.6698 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.6e-05/0.4299, allocations: 81.38 kB / 0.6699 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.4299, allocations: 56.22 kB / 0.6699 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.4303, allocations: 373 kB / 0.6703 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.4303, allocations: 34.09 kB / 0.6703 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.4304, allocations: 48.05 kB / 0.6704 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006323/0.431, allocations: 0.5101 MB / 0.6709 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.431, allocations: 0 / 0.6709 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.4311, allocations: 17.56 kB / 0.6709 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4311, allocations: 12.44 kB / 0.6709 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006046/0.4317, allocations: 492.6 kB / 0.6714 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.4336, allocations: 2.159 MB / 0.6735 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005934/0.4342, allocations: 363.9 kB / 0.6738 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.4345, allocations: 208.5 kB / 0.674 GB, free: 9.988 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001977/0.4365, allocations: 2.029 MB / 0.676 GB, free: 7.676 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.4365, allocations: 35 kB / 0.676 GB, free: 7.633 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.423e-06/0.4365, allocations: 0 / 0.676 GB, free: 7.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001319/0.4378, allocations: 0.8028 MB / 0.6768 GB, free: 6.777 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.4379, allocations: 55.84 kB / 0.6769 GB, free: 6.711 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.4382, allocations: 369.7 kB / 0.6772 GB, free: 6.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.4383, allocations: 33.7 kB / 0.6773 GB, free: 6.301 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.4384, allocations: 232.6 kB / 0.6775 GB, free: 6.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.102e-05/0.4385, allocations: 153.7 kB / 0.6776 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.4385, allocations: 41.69 kB / 0.6777 GB, free: 5.871 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4387, allocations: 350.8 kB / 0.678 GB, free: 5.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.4389, allocations: 132.8 kB / 0.6781 GB, free: 5.391 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.4391, allocations: 189 kB / 0.6783 GB, free: 5.191 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004854/0.4396, allocations: 348.9 kB / 0.6787 GB, free: 4.836 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4396, allocations: 0 / 0.6787 GB, free: 4.836 MB / 494.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007373/0.4404, allocations: 0.4893 MB / 0.6791 GB, free: 4.332 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.4404, allocations: 8 kB / 0.6791 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.4404, allocations: 4.125 kB / 0.6791 GB, free: 4.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.4406, allocations: 65.61 kB / 0.6792 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.4409, allocations: 91.83 kB / 0.6793 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.4426, allocations: 2.714 MB / 0.6819 GB, free: 1.176 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.4428, allocations: 47.52 kB / 0.682 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.4429, allocations: 16 kB / 0.682 GB, free: 1.113 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.0001583/0.443, allocations: 181.6 kB / 0.6822 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.4431, allocations: 47.44 kB / 0.6822 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.4442, allocations: 0.7005 MB / 0.6829 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.788e-06/0.4442, allocations: 4 kB / 0.6829 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.4442, allocations: 0 / 0.6829 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4442, allocations: 3.984 kB / 0.6829 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.4457, allocations: 1.167 MB / 0.6841 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4457, allocations: 0 / 0.6841 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.446, allocations: 75.91 kB / 0.6841 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.4462, allocations: 65.66 kB / 0.6842 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.4462, allocations: 16.11 kB / 0.6842 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001623/0.4478, allocations: 2.737 MB / 0.6869 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4478, allocations: 4.219 kB / 0.6869 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009764/0.4488, allocations: 0.7482 MB / 0.6876 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.525e-05/0.4489, allocations: 148.3 kB / 0.6878 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.449, allocations: 12 kB / 0.6878 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.4492, allocations: 15.98 kB / 0.6878 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.536e-05/0.4493, allocations: 39.89 kB / 0.6878 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.4493, allocations: 16 kB / 0.6878 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002603/0.4496, allocations: 295.1 kB / 0.6881 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4496, allocations: 4 kB / 0.6881 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005111/0.4501, allocations: 195.7 kB / 0.6883 GB, free: 10.24 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.001435/0.4515, allocations: 1.462 MB / 0.6897 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007799/0.4523, allocations: 0.5964 MB / 0.6903 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.4523, allocations: 0 / 0.6903 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.4528, allocations: 441.6 kB / 0.6907 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009065/0.4537, allocations: 157.9 kB / 0.6909 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005088/0.4588, allocations: 4.634 MB / 0.6954 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.4591, allocations: 0.8395 MB / 0.6962 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002783/0.4594, allocations: 102.2 kB / 0.6963 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.4596, allocations: 191.4 kB / 0.6965 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.4597, allocations: 0 / 0.6965 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.083/2.543, allocations: 14.38 MB / 0.7106 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/2.543, allocations: 239.2 kB / 0.7108 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.229/4.772, allocations: 0 / 0.7108 GB, free: 3.258 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