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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002017/0.002018, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002148/0.002148, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.938/1.938, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9462/0.9462, allocations: 93.71 MB / 384.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002508/0.002508, allocations: 74.16 kB / 463.5 MB, free: 22.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2027, allocations: 68.26 MB / 0.5193 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.6768/0.8796, allocations: 149.5 MB / 0.6653 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007744/0.8874, allocations: 4.636 MB / 0.6698 GB, free: 10.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009629/0.8884, allocations: 26.88 kB / 0.6698 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.8895, allocations: 294 kB / 0.6701 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0021/0.8916, allocations: 0.6635 MB / 0.6708 GB, free: 9.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001629/0.8933, allocations: 0.4962 MB / 0.6713 GB, free: 9.223 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001342/0.8946, allocations: 0.9844 MB / 0.6722 GB, free: 8.652 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005119/0.8952, allocations: 150.3 kB / 0.6724 GB, free: 8.586 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00121/0.8964, allocations: 0.5115 MB / 0.6729 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008872/0.8973, allocations: 469.3 kB / 0.6733 GB, free: 8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-05/0.8974, allocations: 46.73 kB / 0.6734 GB, free: 7.996 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.8994, allocations: 0.768 MB / 0.6741 GB, free: 7.637 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.8996, allocations: 123.3 kB / 0.6742 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003284/0.9, allocations: 308 kB / 0.6745 GB, free: 7.336 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.9017, allocations: 0.9397 MB / 0.6754 GB, free: 6.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.9017, allocations: 2.219 kB / 0.6754 GB, free: 6.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9017, allocations: 0 / 0.6754 GB, free: 6.734 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.72e-05/0.9017, allocations: 0 / 0.6754 GB, free: 6.734 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.002031/0.9038, allocations: 0.9656 MB / 0.6764 GB, free: 5.938 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.9038, allocations: 10 kB / 0.6764 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.904, allocations: 83.11 kB / 0.6765 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.9041, allocations: 71.38 kB / 0.6765 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.9049, allocations: 0.5041 MB / 0.677 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.9049, allocations: 35.88 kB / 0.6771 GB, free: 5.363 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-05/0.905, allocations: 43.59 kB / 0.6771 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009604/0.906, allocations: 0.5088 MB / 0.6776 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.906, allocations: 3.984 kB / 0.6776 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.251e-05/0.9061, allocations: 20.97 kB / 0.6776 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.9061, allocations: 10.06 kB / 0.6776 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008328/0.9069, allocations: 481.8 kB / 0.6781 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.9102, allocations: 2.189 MB / 0.6802 GB, free: 2.754 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000829/0.9111, allocations: 359.3 kB / 0.6806 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/0.9114, allocations: 206.1 kB / 0.6808 GB, free: 2.473 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002787/0.9142, allocations: 1.992 MB / 0.6827 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.9143, allocations: 36.78 kB / 0.6828 GB, free: 388 kB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.9143, allocations: 4 kB / 0.6828 GB, free: 384 kB / 494.1 MB Notification: Performance of matching and sorting (n=47): time 0.001701/0.916, allocations: 0.7941 MB / 0.6835 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.9161, allocations: 61.66 kB / 0.6836 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005894/0.9166, allocations: 480.1 kB / 0.6841 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.9167, allocations: 36.23 kB / 0.6841 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.9169, allocations: 270.8 kB / 0.6843 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.9171, allocations: 162.5 kB / 0.6845 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.9173, allocations: 79.12 kB / 0.6846 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002024/0.9175, allocations: 373.6 kB / 0.6849 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.9177, allocations: 130.3 kB / 0.6851 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.918, allocations: 180.9 kB / 0.6852 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005881/0.9186, allocations: 344.3 kB / 0.6856 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.9186, allocations: 0 / 0.6856 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000936/0.9196, allocations: 0.4949 MB / 0.686 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.9196, allocations: 4.906 kB / 0.686 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.9196, allocations: 6.438 kB / 0.686 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003234/0.92, allocations: 73.42 kB / 0.6861 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.9203, allocations: 91.55 kB / 0.6862 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002848/0.9231, allocations: 2.93 MB / 0.6891 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.9234, allocations: 45.42 kB / 0.6891 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.632e-05/0.9235, allocations: 16.34 kB / 0.6891 GB, free: 10.91 MB / 0.4981 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.0002703/0.9238, allocations: 179 kB / 0.6893 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.9239, allocations: 58.56 kB / 0.6894 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.9253, allocations: 0.7157 MB / 0.6901 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.9253, allocations: 5.344 kB / 0.6901 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.9253, allocations: 6.562 kB / 0.6901 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.9253, allocations: 3.984 kB / 0.6901 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.9273, allocations: 1.191 MB / 0.6912 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.9273, allocations: 2.156 kB / 0.6912 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.9276, allocations: 77.67 kB / 0.6913 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002277/0.9278, allocations: 65.03 kB / 0.6914 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/0.9278, allocations: 15.81 kB / 0.6914 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.9305, allocations: 2.933 MB / 0.6942 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.9305, allocations: 0 / 0.6942 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.9319, allocations: 0.7561 MB / 0.695 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.9321, allocations: 136.3 kB / 0.6951 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.9322, allocations: 19.91 kB / 0.6951 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.9325, allocations: 12 kB / 0.6951 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.9326, allocations: 51.95 kB / 0.6952 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.538e-05/0.9327, allocations: 16 kB / 0.6952 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005459/0.9332, allocations: 366.8 kB / 0.6956 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9332, allocations: 0 / 0.6956 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000816/0.934, allocations: 195.8 kB / 0.6957 GB, free: 4.973 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.0022/0.9362, allocations: 1.475 MB / 0.6972 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001356/0.9376, allocations: 0.6042 MB / 0.6978 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.9376, allocations: 0 / 0.6978 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.9383, allocations: 433.6 kB / 0.6982 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.9396, allocations: 185.6 kB / 0.6984 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009156/0.9487, allocations: 4.917 MB / 0.7032 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006415/0.9494, allocations: 0.875 MB / 0.704 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000625/0.9501, allocations: 125.4 kB / 0.7041 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004384/0.9506, allocations: 235.4 kB / 0.7044 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.643e-06/0.9506, allocations: 3.938 kB / 0.7044 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08481/1.035, allocations: 16.39 MB / 0.7204 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.63, allocations: 11.73 kB / 0.7204 GB, free: 11.75 MB / 0.5294 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) 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) Reference file matches