Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.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.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Interfaces_Tests_Test_p_out_clipping",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.001305/0.001306, 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.001301/0.001301, allocations: 194 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.531/1.531, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7544/0.7544, allocations: 93.7 MB / 384.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 80.17 kB / 463.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1252, allocations: 68.26 MB / 0.5193 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.4635/0.5887, allocations: 161.8 MB / 0.6773 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.6049, allocations: 12.65 MB / 0.6897 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009842/0.606, allocations: 38 kB / 0.6897 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.6076, allocations: 0.6587 MB / 0.6904 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003037/0.6107, allocations: 1.164 MB / 0.6915 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002533/0.6133, allocations: 0.8994 MB / 0.6924 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00222/0.6155, allocations: 1.9 MB / 0.6942 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005201/0.616, allocations: 362.7 kB / 0.6946 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.6171, allocations: 0.8212 MB / 0.6954 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.6184, allocations: 1.079 MB / 0.6964 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002177/0.6187, allocations: 125.8 kB / 0.6965 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.6221, allocations: 1.529 MB / 0.698 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003814/0.6225, allocations: 382.7 kB / 0.6984 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000816/0.6234, allocations: 0.719 MB / 0.6991 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003442/0.6268, allocations: 2.146 MB / 0.7012 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6268, allocations: 0 / 0.7012 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6268, allocations: 4 kB / 0.7012 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.392e-05/0.6269, allocations: 0 / 0.7012 GB, free: 0.6289 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004625/0.6315, allocations: 2.018 MB / 0.7032 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.6315, allocations: 16.02 kB / 0.7032 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.6317, allocations: 140.1 kB / 0.7033 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003198/0.6321, allocations: 158.4 kB / 0.7035 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.6336, allocations: 0.921 MB / 0.7044 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.6337, allocations: 95.64 kB / 0.7045 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.6339, allocations: 99.91 kB / 0.7046 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.6363, allocations: 1.473 MB / 0.706 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.6363, allocations: 3.984 kB / 0.706 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.6364, allocations: 36 kB / 0.706 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.3e-05/0.6365, allocations: 53.92 kB / 0.7061 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003294/0.6398, allocations: 2.045 MB / 0.7081 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008794/0.6486, allocations: 5.237 MB / 0.7132 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.6507, allocations: 1.309 MB / 0.7145 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.6521, allocations: 0.8809 MB / 0.7153 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006291/0.6584, allocations: 4.707 MB / 0.7199 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.6584, allocations: 47.5 kB / 0.72 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=119): time 5.09e-06/0.6584, allocations: 0 / 0.72 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=121): time 0.01027/0.6687, allocations: 5.287 MB / 0.7251 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.6688, allocations: 64.41 kB / 0.7252 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.6705, allocations: 0.91 MB / 0.7261 GB, free: 5.938 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.6707, allocations: 49.7 kB / 0.7261 GB, free: 5.883 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004574/0.6712, allocations: 465.1 kB / 0.7266 GB, free: 5.422 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.6717, allocations: 417.9 kB / 0.727 GB, free: 5.008 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005039/0.6722, allocations: 246.7 kB / 0.7272 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000226/0.6725, allocations: 353.9 kB / 0.7276 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.6738, allocations: 0.6311 MB / 0.7282 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.6752, allocations: 0.7603 MB / 0.7289 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.6778, allocations: 1.472 MB / 0.7304 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.6778, allocations: 0 / 0.7304 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003873/0.6817, allocations: 1.987 MB / 0.7323 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.6817, allocations: 4 kB / 0.7323 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.6818, allocations: 8 kB / 0.7323 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.6828, allocations: 345.1 kB / 0.7326 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.6839, allocations: 235.6 kB / 0.7329 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00576/0.6897, allocations: 3.893 MB / 0.7367 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.6907, allocations: 35.98 kB / 0.7367 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.6909, allocations: 55.94 kB / 0.7367 GB, free: 10.78 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000658/0.6915, allocations: 335 kB / 0.7371 GB, free: 10.44 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.6918, allocations: 122.5 kB / 0.7372 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.6964, allocations: 2.781 MB / 0.7399 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.6965, allocations: 8 kB / 0.7399 GB, free: 7.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.026e-06/0.6965, allocations: 4 kB / 0.7399 GB, free: 7.477 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.6965, allocations: 11.98 kB / 0.7399 GB, free: 7.465 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/0.7025, allocations: 3.404 MB / 0.7432 GB, free: 3.984 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.7026, allocations: 4 kB / 0.7432 GB, free: 3.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009408/0.7035, allocations: 171.7 kB / 0.7434 GB, free: 3.812 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009938/0.7045, allocations: 416.5 kB / 0.7438 GB, free: 3.402 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.7046, allocations: 51.92 kB / 0.7439 GB, free: 3.352 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005571/0.7102, allocations: 3.884 MB / 0.7477 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.7102, allocations: 4 kB / 0.7477 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005004/0.7152, allocations: 2.802 MB / 0.7504 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007952/0.7161, allocations: 347.4 kB / 0.7507 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/0.7163, allocations: 24 kB / 0.7507 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006989/0.717, allocations: 23.98 kB / 0.7508 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002369/0.7172, allocations: 100.8 kB / 0.7509 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7174, allocations: 47.94 kB / 0.7509 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001015/0.7184, allocations: 0.704 MB / 0.7516 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7184, allocations: 0 / 0.7516 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001462/0.7199, allocations: 483.8 kB / 0.7521 GB, free: 10.76 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (flowResistance.m_flow,fan.m_flow,fan.phi,fan.omega,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,nozzle.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 (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007009/0.7269, allocations: 3.982 MB / 0.7559 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004471/0.7314, allocations: 2.216 MB / 0.7581 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.7314, allocations: 0 / 0.7581 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002211/0.7336, allocations: 1.188 MB / 0.7593 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.7358, allocations: 429.1 kB / 0.7597 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0203/0.7561, allocations: 12.72 MB / 0.7721 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009005/0.7571, allocations: 1.176 MB / 0.7733 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001186/0.7583, allocations: 336.1 kB / 0.7736 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007636/0.759, allocations: 491.2 kB / 0.774 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of SimCode: time 6.12e-07/0.759, allocations: 0 / 0.774 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08356/0.8426, allocations: 37.59 MB / 0.8107 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.61, allocations: 3.781 kB / 0.8108 GB, free: 14.58 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches