Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 216 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.424/1.424, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7138/0.7138, allocations: 94.55 MB / 407.8 MB, free: 9.191 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 81.31 kB / 0.5557 GB, free: 38.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1172, allocations: 73.06 MB / 0.6271 GB, free: 488 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5301/0.6473, allocations: 190.8 MB / 0.8134 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01886/0.6662, allocations: 17.98 MB / 0.8309 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003118/0.6693, allocations: 100.1 kB / 0.831 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003685/0.673, allocations: 0.9991 MB / 0.832 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008302/0.6813, allocations: 2.423 MB / 0.8344 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005435/0.6867, allocations: 1.886 MB / 0.8362 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004918/0.6916, allocations: 3.673 MB / 0.8398 GB, free: 9.121 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005338/0.6922, allocations: 284 kB / 0.8401 GB, free: 8.945 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.6948, allocations: 1.642 MB / 0.8417 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00197/0.6968, allocations: 1.594 MB / 0.8432 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002252/0.697, allocations: 167.2 kB / 0.8434 GB, free: 7.23 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005113/0.7021, allocations: 2.63 MB / 0.846 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.7025, allocations: 463.5 kB / 0.8464 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.7036, allocations: 1.083 MB / 0.8475 GB, free: 5.203 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006222/0.7098, allocations: 3.272 MB / 0.8507 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.7098, allocations: 0 / 0.8507 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.884e-06/0.7098, allocations: 0 / 0.8507 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.907e-05/0.7099, allocations: 0 / 0.8507 GB, free: 3.336 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.005316/0.7152, allocations: 2.625 MB / 0.8532 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.7152, allocations: 12.03 kB / 0.8532 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.071e-05/0.7153, allocations: 34.86 kB / 0.8533 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002388/0.7155, allocations: 215.2 kB / 0.8535 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000649/0.7162, allocations: 262.4 kB / 0.8537 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.7184, allocations: 1.227 MB / 0.8549 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.382e-05/0.7185, allocations: 110.9 kB / 0.855 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.7188, allocations: 156 kB / 0.8552 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002733/0.7215, allocations: 1.655 MB / 0.8568 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.7215, allocations: 4 kB / 0.8568 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/0.7217, allocations: 60 kB / 0.8568 GB, free: 13.6 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.342e-05/0.7217, allocations: 36 kB / 0.8569 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.7243, allocations: 1.516 MB / 0.8584 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009291/0.7336, allocations: 7.085 MB / 0.8653 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.7364, allocations: 1.425 MB / 0.8667 GB, free: 3 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.7376, allocations: 0.6666 MB / 0.8673 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004917/0.7425, allocations: 2.937 MB / 0.8702 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.7425, allocations: 59.75 kB / 0.8702 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=166): time 2.866e-06/0.7425, allocations: 4 kB / 0.8703 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of matching and sorting (n=166): time 0.006289/0.7488, allocations: 2.472 MB / 0.8727 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.7489, allocations: 175 kB / 0.8728 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.7505, allocations: 1.307 MB / 0.8741 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.7506, allocations: 57.7 kB / 0.8742 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006357/0.7512, allocations: 0.8014 MB / 0.8749 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004674/0.7517, allocations: 0.5961 MB / 0.8755 GB, free: 9.852 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004192/0.7521, allocations: 291.5 kB / 0.8758 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.7522, allocations: 305.1 kB / 0.8761 GB, free: 9.262 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009559/0.7532, allocations: 499.3 kB / 0.8766 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.7544, allocations: 0.8327 MB / 0.8774 GB, free: 7.816 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.7568, allocations: 1.436 MB / 0.8788 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.7568, allocations: 4 kB / 0.8788 GB, free: 6.246 MB / 0.6231 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003439/0.7602, allocations: 1.861 MB / 0.8806 GB, free: 4.371 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.7602, allocations: 8 kB / 0.8806 GB, free: 4.363 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.7602, allocations: 11.98 kB / 0.8806 GB, free: 4.352 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007344/0.761, allocations: 220.6 kB / 0.8808 GB, free: 4.121 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.7624, allocations: 379.4 kB / 0.8812 GB, free: 3.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006078/0.7685, allocations: 7.183 MB / 0.8882 GB, free: 12 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.7698, allocations: 162.9 kB / 0.8884 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/0.77, allocations: 75.98 kB / 0.8884 GB, free: 11.76 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * 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,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007053/0.7707, allocations: 341.3 kB / 0.8888 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004663/0.7712, allocations: 198.7 kB / 0.889 GB, free: 11.22 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.7754, allocations: 2.056 MB / 0.891 GB, free: 9.109 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.7754, allocations: 16 kB / 0.891 GB, free: 9.094 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.7754, allocations: 4 kB / 0.891 GB, free: 9.09 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.7754, allocations: 7.969 kB / 0.891 GB, free: 9.082 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006856/0.7823, allocations: 3.903 MB / 0.8948 GB, free: 5.105 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.7823, allocations: 4 kB / 0.8948 GB, free: 5.102 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.7833, allocations: 251.7 kB / 0.895 GB, free: 4.855 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/0.7851, allocations: 475.4 kB / 0.8955 GB, free: 4.363 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.7852, allocations: 55.97 kB / 0.8956 GB, free: 4.309 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007715/0.7929, allocations: 9.453 MB / 0.9048 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.7929, allocations: 3.938 kB / 0.9048 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005161/0.7981, allocations: 2.882 MB / 0.9076 GB, free: 7.23 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/0.7986, allocations: 214.3 kB / 0.9078 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.7989, allocations: 39.94 kB / 0.9078 GB, free: 6.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.7999, allocations: 55.97 kB / 0.9079 GB, free: 6.926 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002602/0.8002, allocations: 140.5 kB / 0.908 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.8003, allocations: 71.95 kB / 0.9081 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001221/0.8016, allocations: 0.9015 MB / 0.909 GB, free: 5.824 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8016, allocations: 0 / 0.909 GB, free: 5.824 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002212/0.8038, allocations: 0.7874 MB / 0.9098 GB, free: 5.035 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.inlet.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 (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * 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,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006319/0.8101, allocations: 4.087 MB / 0.9137 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003462/0.8136, allocations: 1.915 MB / 0.9156 GB, free: 14.93 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.8136, allocations: 3.938 kB / 0.9156 GB, free: 14.93 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002464/0.816, allocations: 1.382 MB / 0.917 GB, free: 13.48 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/0.8191, allocations: 0.6176 MB / 0.9176 GB, free: 12.89 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02419/0.8433, allocations: 14.43 MB / 0.9317 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.8443, allocations: 1.344 MB / 0.933 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001433/0.8457, allocations: 350.3 kB / 0.9333 GB, free: 12.18 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/0.8467, allocations: 0.7726 MB / 0.9341 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of SimCode: time 1.302e-06/0.8467, allocations: 0 / 0.9341 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1173/0.9641, allocations: 56.08 MB / 0.9888 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.59/17.55, allocations: 8.062 kB / 0.9888 GB, free: 3.711 MB / 0.7325 GB " [Timeout remaining time 642] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable volumeFlex2.m_flow_out in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat. Warning: Get data of variable volumeFlex2.m_flow_out from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.604820028995164]