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.01393/0.01393, allocations: 101 kB / 15.73 MB, free: 6.059 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.002264/0.002264, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.178/2.178, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.413/1.413, allocations: 93.7 MB / 384.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003335/0.003336, allocations: 87.86 kB / 0.52 GB, free: 1.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8098/0.8132, allocations: 68.24 MB / 0.5866 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 1.232/2.045, allocations: 172.4 MB / 0.755 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02571/2.071, allocations: 11.36 MB / 0.7661 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004621/2.076, allocations: 67.66 kB / 0.7661 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003781/2.08, allocations: 0.8943 MB / 0.767 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01027/2.09, allocations: 1.687 MB / 0.7686 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0078/2.098, allocations: 1.304 MB / 0.7699 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007877/2.106, allocations: 2.567 MB / 0.7724 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001772/2.108, allocations: 391.4 kB / 0.7728 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006367/2.114, allocations: 1.378 MB / 0.7741 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005171/2.119, allocations: 1.138 MB / 0.7753 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.00114/2.12, allocations: 108.9 kB / 0.7754 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009467/2.13, allocations: 1.83 MB / 0.7771 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009832/2.131, allocations: 335.2 kB / 0.7775 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002986/2.134, allocations: 0.8045 MB / 0.7782 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01089/2.145, allocations: 2.505 MB / 0.7807 GB, free: 92 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/2.145, allocations: 0 / 0.7807 GB, free: 92 kB / 0.5762 GB Notification: Performance of FrontEnd: time 3.697e-06/2.145, allocations: 0 / 0.7807 GB, free: 92 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.721e-05/2.145, allocations: 0.9688 kB / 0.7807 GB, free: 92 kB / 0.5762 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.007599/2.153, allocations: 2.165 MB / 0.7828 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/2.153, allocations: 11 kB / 0.7828 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004138/2.153, allocations: 158.7 kB / 0.783 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/2.154, allocations: 209.8 kB / 0.7832 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003605/2.157, allocations: 1.233 MB / 0.7844 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/2.158, allocations: 78.03 kB / 0.7845 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002206/2.158, allocations: 121 kB / 0.7846 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/2.161, allocations: 1.173 MB / 0.7857 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/2.161, allocations: 1 kB / 0.7857 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/2.161, allocations: 42.12 kB / 0.7858 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/2.161, allocations: 26.56 kB / 0.7858 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002395/2.163, allocations: 1.072 MB / 0.7868 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01194/2.175, allocations: 5.269 MB / 0.792 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/2.178, allocations: 0.7432 MB / 0.7927 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/2.179, allocations: 442 kB / 0.7931 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008067/2.187, allocations: 3.9 MB / 0.7969 GB, free: 7.902 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.983e-05/2.187, allocations: 50.19 kB / 0.797 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=108): time 4.168e-06/2.187, allocations: 0 / 0.797 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of matching and sorting (n=108): time 0.005768/2.193, allocations: 1.852 MB / 0.7988 GB, free: 7.188 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002325/2.193, allocations: 119.4 kB / 0.7989 GB, free: 7.062 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003245/2.196, allocations: 1.284 MB / 0.8002 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/2.196, allocations: 44.98 kB / 0.8002 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.00103/2.197, allocations: 0.6337 MB / 0.8008 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005453/2.198, allocations: 384.5 kB / 0.8012 GB, free: 6.426 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004797/2.198, allocations: 204.2 kB / 0.8014 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002853/2.199, allocations: 349.2 kB / 0.8017 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007256/2.199, allocations: 298.8 kB / 0.802 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/2.201, allocations: 447.5 kB / 0.8024 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/2.202, allocations: 0.7668 MB / 0.8032 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-05/2.202, allocations: 7.609 kB / 0.8032 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003601/2.206, allocations: 1.16 MB / 0.8043 GB, free: 5.301 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.376e-05/2.206, allocations: 6.531 kB / 0.8043 GB, free: 5.301 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/2.206, allocations: 2.594 kB / 0.8043 GB, free: 5.301 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008468/2.207, allocations: 160.9 kB / 0.8045 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009603/2.208, allocations: 212.1 kB / 0.8047 GB, free: 5.219 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/2.218, allocations: 7.254 MB / 0.8118 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/2.22, allocations: 110.3 kB / 0.8119 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002715/2.221, allocations: 42.22 kB / 0.8119 GB, free: 13.94 MB / 0.6075 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.001438/2.222, allocations: 319.3 kB / 0.8122 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/2.223, allocations: 178.3 kB / 0.8124 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005667/2.229, allocations: 1.709 MB / 0.814 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/2.229, allocations: 12.75 kB / 0.8141 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.071e-05/2.229, allocations: 3.312 kB / 0.8141 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/2.229, allocations: 8.391 kB / 0.8141 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008485/2.237, allocations: 2.396 MB / 0.8164 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/2.237, allocations: 2.5 kB / 0.8164 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005607/2.238, allocations: 136.6 kB / 0.8165 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000871/2.239, allocations: 163.4 kB / 0.8167 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/2.239, allocations: 33.91 kB / 0.8167 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009945/2.249, allocations: 7.259 MB / 0.8238 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.269e-05/2.249, allocations: 7 kB / 0.8238 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005053/2.254, allocations: 1.583 MB / 0.8254 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/2.256, allocations: 347.2 kB / 0.8257 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007949/2.257, allocations: 38.62 kB / 0.8257 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/2.258, allocations: 20.98 kB / 0.8258 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/2.259, allocations: 79.94 kB / 0.8258 GB, free: 2.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.52e-05/2.259, allocations: 36.14 kB / 0.8259 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002755/2.261, allocations: 0.9889 MB / 0.8268 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/2.261, allocations: 4 kB / 0.8268 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00325/2.265, allocations: 464.1 kB / 0.8273 GB, free: 1.035 MB / 0.6075 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.00727/2.272, allocations: 2.792 MB / 0.83 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003712/2.276, allocations: 1.338 MB / 0.8313 GB, free: 13 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.078e-05/2.276, allocations: 0 / 0.8313 GB, free: 13 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001841/2.278, allocations: 0.9509 MB / 0.8322 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004789/2.283, allocations: 478.7 kB / 0.8327 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02875/2.311, allocations: 10.97 MB / 0.8434 GB, free: 320 kB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/2.313, allocations: 1.213 MB / 0.8446 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001693/2.315, allocations: 310 kB / 0.8449 GB, free: 14.78 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/2.316, allocations: 0.6086 MB / 0.8455 GB, free: 14.17 MB / 0.6387 GB Notification: Performance of SimCode: time 2.134e-06/2.316, allocations: 4 kB / 0.8455 GB, free: 14.17 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1649/2.481, allocations: 39.45 MB / 0.884 GB, free: 7.051 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.45/23.93, allocations: 4.062 kB / 0.884 GB, free: 7.047 MB / 0.67 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