Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.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.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_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.002675/0.002675, 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.003061/0.003061, allocations: 197.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.52/2.52, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.432/1.432, allocations: 93.72 MB / 384.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004568/0.004569, allocations: 87.17 kB / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3387, allocations: 68.26 MB / 0.5193 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 1.225/1.564, allocations: 172.4 MB / 0.6877 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03124/1.595, allocations: 11.37 MB / 0.6988 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005758/1.601, allocations: 67.84 kB / 0.6988 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.005282/1.606, allocations: 0.8865 MB / 0.6997 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01257/1.619, allocations: 1.685 MB / 0.7013 GB, free: 272 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009086/1.628, allocations: 1.307 MB / 0.7026 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008602/1.637, allocations: 2.558 MB / 0.7051 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/1.639, allocations: 399.2 kB / 0.7055 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007005/1.646, allocations: 1.365 MB / 0.7068 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004819/1.651, allocations: 1.132 MB / 0.7079 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004948/1.651, allocations: 112 kB / 0.708 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009081/1.66, allocations: 1.84 MB / 0.7098 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006119/1.661, allocations: 330.6 kB / 0.7102 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001947/1.663, allocations: 0.804 MB / 0.7109 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01132/1.674, allocations: 2.43 MB / 0.7133 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-05/1.674, allocations: 4 kB / 0.7133 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of FrontEnd: time 7.675e-06/1.674, allocations: 0 / 0.7133 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0002227/1.675, allocations: 0 / 0.7133 GB, free: 4.078 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.007489/1.682, allocations: 2.1 MB / 0.7154 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 0.0002117/1.682, allocations: 8.031 kB / 0.7154 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009935/1.683, allocations: 160.7 kB / 0.7155 GB, free: 1.746 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000974/1.685, allocations: 198.5 kB / 0.7157 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/1.687, allocations: 1.11 MB / 0.7168 GB, free: 396 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/1.687, allocations: 78.47 kB / 0.7169 GB, free: 316 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002584/1.688, allocations: 111.8 kB / 0.717 GB, free: 204 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/1.691, allocations: 1.175 MB / 0.7181 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/1.692, allocations: 8 kB / 0.7181 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000529/1.692, allocations: 40 kB / 0.7182 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.399e-05/1.692, allocations: 28 kB / 0.7182 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/1.695, allocations: 1.07 MB / 0.7193 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/1.707, allocations: 5.283 MB / 0.7244 GB, free: 8.145 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003351/1.71, allocations: 0.7495 MB / 0.7251 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008671/1.711, allocations: 445.8 kB / 0.7256 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008514/1.72, allocations: 3.9 MB / 0.7294 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/1.72, allocations: 47.12 kB / 0.7294 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 6.432e-06/1.72, allocations: 0 / 0.7294 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of matching and sorting (n=108): time 0.006419/1.726, allocations: 1.846 MB / 0.7312 GB, free: 472 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/1.726, allocations: 115.4 kB / 0.7313 GB, free: 332 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/1.729, allocations: 1.279 MB / 0.7326 GB, free: 15.03 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/1.729, allocations: 45.7 kB / 0.7326 GB, free: 14.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008817/1.73, allocations: 0.6245 MB / 0.7332 GB, free: 14.35 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005168/1.731, allocations: 370.6 kB / 0.7336 GB, free: 13.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004228/1.731, allocations: 198.8 kB / 0.7338 GB, free: 13.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0003135/1.731, allocations: 345.9 kB / 0.7341 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000989/1.732, allocations: 302.5 kB / 0.7344 GB, free: 13.15 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/1.734, allocations: 441.2 kB / 0.7348 GB, free: 12.67 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/1.736, allocations: 0.7787 MB / 0.7356 GB, free: 11.86 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/1.736, allocations: 3.938 kB / 0.7356 GB, free: 11.85 MB / 0.545 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002877/1.739, allocations: 1.154 MB / 0.7367 GB, free: 10.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/1.739, allocations: 4 kB / 0.7367 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-05/1.739, allocations: 11.97 kB / 0.7367 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008107/1.74, allocations: 160.1 kB / 0.7369 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/1.741, allocations: 211.6 kB / 0.7371 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/1.753, allocations: 7.248 MB / 0.7442 GB, free: 2.344 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/1.755, allocations: 106.8 kB / 0.7443 GB, free: 2.238 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/1.755, allocations: 43.98 kB / 0.7443 GB, free: 2.195 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (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.001085/1.756, allocations: 321.5 kB / 0.7446 GB, free: 1.871 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/1.757, allocations: 165.9 kB / 0.7448 GB, free: 1.707 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005307/1.763, allocations: 1.713 MB / 0.7464 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/1.763, allocations: 12 kB / 0.7465 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.763, allocations: 0 / 0.7465 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.313e-05/1.763, allocations: 7.984 kB / 0.7465 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007041/1.77, allocations: 2.397 MB / 0.7488 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/1.77, allocations: 4 kB / 0.7488 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005448/1.771, allocations: 131.8 kB / 0.7489 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005839/1.771, allocations: 168.4 kB / 0.7491 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/1.771, allocations: 31.98 kB / 0.7491 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/1.782, allocations: 7.263 MB / 0.7562 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/1.782, allocations: 4 kB / 0.7562 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006174/1.788, allocations: 1.581 MB / 0.7578 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009149/1.789, allocations: 334.8 kB / 0.7581 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/1.789, allocations: 35.78 kB / 0.7581 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006907/1.79, allocations: 24 kB / 0.7581 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/1.79, allocations: 67.84 kB / 0.7582 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.574e-05/1.79, allocations: 43.92 kB / 0.7582 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002701/1.793, allocations: 0.9889 MB / 0.7592 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.904e-06/1.793, allocations: 0 / 0.7592 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003529/1.796, allocations: 463.4 kB / 0.7597 GB, free: 1.488 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.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 (74): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (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.007144/1.804, allocations: 2.774 MB / 0.7624 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00364/1.807, allocations: 1.36 MB / 0.7637 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/1.807, allocations: 0 / 0.7637 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001717/1.809, allocations: 0.9526 MB / 0.7646 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004858/1.814, allocations: 489.4 kB / 0.7651 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03081/1.845, allocations: 12.14 MB / 0.7769 GB, free: 15 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001781/1.847, allocations: 1.213 MB / 0.7781 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003162/1.85, allocations: 308.6 kB / 0.7784 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/1.851, allocations: 0.6086 MB / 0.779 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of SimCode: time 1.753e-06/1.851, allocations: 4 kB / 0.779 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.201/2.052, allocations: 38.93 MB / 0.817 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.35/21.41, allocations: 19.62 kB / 0.8171 GB, free: 6.254 MB / 0.6231 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Interfaces_Tests_Test_p_out_clipping.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches