Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.00139/0.00139, allocations: 114.1 kB / 17.16 MB, free: 5.895 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.00142/0.00142, allocations: 215 kB / 20.13 MB, free: 2.949 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.568/1.568, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6645/0.6645, allocations: 100.3 MB / 409.8 MB, free: 5.375 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_ThermofluidStream_FlowControl_Tests_PCV",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_dev_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.002507/0.002507, allocations: 83.88 kB / 0.5589 GB, free: 13.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4292/0.4317, allocations: 74.42 MB / 0.6316 GB, free: 2.414 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.2226/0.6544, allocations: 190.2 MB / 0.8173 GB, free: 4.609 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02375/0.6781, allocations: 17.88 MB / 0.8347 GB, free: 2.68 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002061/0.6802, allocations: 95.12 kB / 0.8348 GB, free: 2.586 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002855/0.683, allocations: 1.001 MB / 0.8358 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.367/1.05, allocations: 2.404 MB / 0.8381 GB, free: 3.676 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005295/1.055, allocations: 1.83 MB / 0.8399 GB, free: 3.676 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.005686/1.061, allocations: 3.643 MB / 0.8435 GB, free: 3.668 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006853/1.062, allocations: 274.9 kB / 0.8437 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/1.065, allocations: 1.637 MB / 0.8453 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003073/1.068, allocations: 1.59 MB / 0.8469 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006612/1.069, allocations: 167.5 kB / 0.847 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006312/1.075, allocations: 2.604 MB / 0.8496 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007323/1.076, allocations: 457.1 kB / 0.85 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001832/1.078, allocations: 1.083 MB / 0.8511 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005911/1.084, allocations: 3.274 MB / 0.8543 GB, free: 3.102 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/1.084, allocations: 2.5 kB / 0.8543 GB, free: 3.102 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.873e-06/1.084, allocations: 0.75 kB / 0.8543 GB, free: 3.102 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.165e-05/1.084, allocations: 0 / 0.8543 GB, free: 3.102 MB / 0.6544 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.004837/1.089, allocations: 2.699 MB / 0.8569 GB, free: 17.8 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/1.089, allocations: 10.03 kB / 0.8569 GB, free: 17.8 MB / 0.67 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.599e-05/1.089, allocations: 41.23 kB / 0.857 GB, free: 17.8 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002137/1.089, allocations: 214.3 kB / 0.8572 GB, free: 17.76 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006925/1.09, allocations: 260.2 kB / 0.8574 GB, free: 17.63 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002301/1.092, allocations: 1.341 MB / 0.8587 GB, free: 17.17 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.926e-05/1.092, allocations: 105.8 kB / 0.8588 GB, free: 17.17 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/1.092, allocations: 165.6 kB / 0.859 GB, free: 17.16 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002616/1.095, allocations: 1.629 MB / 0.8606 GB, free: 16.98 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/1.095, allocations: 3.094 kB / 0.8606 GB, free: 16.98 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/1.095, allocations: 64.22 kB / 0.8606 GB, free: 16.98 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/1.095, allocations: 36.34 kB / 0.8607 GB, free: 16.98 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/1.097, allocations: 1.482 MB / 0.8621 GB, free: 16.97 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009866/1.107, allocations: 7.165 MB / 0.8691 GB, free: 13.1 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/1.11, allocations: 1.421 MB / 0.8705 GB, free: 12.97 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/1.111, allocations: 0.685 MB / 0.8712 GB, free: 12.92 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00748/1.118, allocations: 5.954 MB / 0.877 GB, free: 8.203 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/1.118, allocations: 56.88 kB / 0.877 GB, free: 8.164 MB / 0.67 GB Notification: Performance of pre-optimization done (n=166): time 4.178e-06/1.118, allocations: 0.9688 kB / 0.877 GB, free: 8.164 MB / 0.67 GB Notification: Performance of matching and sorting (n=166): time 0.006756/1.125, allocations: 3.148 MB / 0.8801 GB, free: 7.062 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/1.125, allocations: 175.1 kB / 0.8803 GB, free: 6.875 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/1.127, allocations: 1.306 MB / 0.8816 GB, free: 6.703 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001659/1.127, allocations: 57.48 kB / 0.8816 GB, free: 6.672 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004473/1.127, allocations: 0.7972 MB / 0.8824 GB, free: 6.391 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004903/1.128, allocations: 0.5954 MB / 0.883 GB, free: 5.996 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003985/1.128, allocations: 294 kB / 0.8833 GB, free: 5.969 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001325/1.128, allocations: 311.3 kB / 0.8836 GB, free: 5.664 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008905/1.129, allocations: 499.4 kB / 0.884 GB, free: 5.66 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/1.13, allocations: 0.8284 MB / 0.8848 GB, free: 5.312 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/1.133, allocations: 1.435 MB / 0.8862 GB, free: 4.957 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/1.133, allocations: 3.344 kB / 0.8862 GB, free: 4.957 MB / 0.67 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003382/1.136, allocations: 1.86 MB / 0.8881 GB, free: 4.73 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/1.136, allocations: 9.75 kB / 0.8881 GB, free: 4.73 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/1.136, allocations: 9.969 kB / 0.8881 GB, free: 4.73 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008024/1.137, allocations: 230.3 kB / 0.8883 GB, free: 4.688 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/1.138, allocations: 380.3 kB / 0.8887 GB, free: 4.688 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006642/1.145, allocations: 7.678 MB / 0.8962 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/1.146, allocations: 168.5 kB / 0.8963 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/1.147, allocations: 78.08 kB / 0.8964 GB, free: 13.84 MB / 0.6856 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.0007044/1.147, allocations: 340.5 kB / 0.8967 GB, free: 13.71 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005458/1.148, allocations: 201.5 kB / 0.8969 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004036/1.152, allocations: 2.051 MB / 0.8989 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/1.152, allocations: 16.97 kB / 0.8989 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/1.152, allocations: 4.906 kB / 0.8989 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.549e-05/1.152, allocations: 7.641 kB / 0.8989 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006947/1.159, allocations: 3.94 MB / 0.9028 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/1.159, allocations: 5.5 kB / 0.9028 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/1.16, allocations: 259.4 kB / 0.903 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/1.162, allocations: 475.1 kB / 0.9035 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/1.162, allocations: 51.52 kB / 0.9035 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008968/1.171, allocations: 9.968 MB / 0.9133 GB, free: 3.535 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.171, allocations: 5.625 kB / 0.9133 GB, free: 3.535 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005364/1.176, allocations: 2.887 MB / 0.9161 GB, free: 2.773 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000802/1.177, allocations: 287 kB / 0.9164 GB, free: 2.547 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002459/1.177, allocations: 40.22 kB / 0.9164 GB, free: 2.543 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/1.178, allocations: 63.77 kB / 0.9165 GB, free: 2.543 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/1.179, allocations: 132.3 kB / 0.9166 GB, free: 2.535 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.179, allocations: 70.67 kB / 0.9167 GB, free: 2.535 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001113/1.18, allocations: 0.9058 MB / 0.9176 GB, free: 2.426 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/1.18, allocations: 0 / 0.9176 GB, free: 2.426 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002431/1.182, allocations: 0.779 MB / 0.9183 GB, free: 2.32 MB / 0.6856 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.006124/1.189, allocations: 4.09 MB / 0.9223 GB, free: 0.8984 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003493/1.192, allocations: 1.902 MB / 0.9242 GB, free: 300 kB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.192, allocations: 4.969 kB / 0.9242 GB, free: 300 kB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002486/1.195, allocations: 1.378 MB / 0.9255 GB, free: 15.71 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003017/1.198, allocations: 0.6226 MB / 0.9261 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02515/1.223, allocations: 14.41 MB / 0.9402 GB, free: 4.098 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/1.224, allocations: 1.35 MB / 0.9415 GB, free: 2.949 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001487/1.225, allocations: 350 kB / 0.9419 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/1.226, allocations: 0.7795 MB / 0.9426 GB, free: 1.949 MB / 0.7012 GB Notification: Performance of SimCode: time 1.273e-06/1.226, allocations: 4 kB / 0.9426 GB, free: 1.945 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1177/1.344, allocations: 54.85 MB / 0.9962 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/18.2, allocations: 10.62 kB / 0.9962 GB, free: 11.82 MB / 0.7637 GB " [Timeout remaining time 642] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat. Warning: Get data of variable volumeFlex2.m_flow_out from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.PCV_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.404369537020102]