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.001623/0.001623, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.002131/0.002131, allocations: 217.4 kB / 23.04 MB, free: 5.074 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.7643/0.7643, allocations: 100.3 MB / 413.5 MB, free: 3.645 MB / 318.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.002444/0.002444, allocations: 82.89 kB / 0.564 GB, free: 35.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1264, allocations: 74.46 MB / 0.6367 GB, free: 7.648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5295/0.656, allocations: 190.8 MB / 0.8231 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02113/0.6771, allocations: 17.96 MB / 0.8406 GB, free: 5.48 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002805/0.6799, allocations: 95.72 kB / 0.8407 GB, free: 5.426 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003079/0.683, allocations: 1.001 MB / 0.8417 GB, free: 4.746 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00708/0.6901, allocations: 2.424 MB / 0.844 GB, free: 3.195 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005261/0.6953, allocations: 1.875 MB / 0.8459 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005851/0.7012, allocations: 3.692 MB / 0.8495 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006664/0.7018, allocations: 280.9 kB / 0.8497 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003573/0.7054, allocations: 1.637 MB / 0.8513 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002745/0.7081, allocations: 1.598 MB / 0.8529 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003463/0.7085, allocations: 167.3 kB / 0.8531 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007464/0.716, allocations: 2.625 MB / 0.8556 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008176/0.7168, allocations: 458 kB / 0.8561 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001876/0.7187, allocations: 1.085 MB / 0.8571 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006582/0.7252, allocations: 3.271 MB / 0.8603 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.7252, allocations: 0 / 0.8603 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7252, allocations: 0 / 0.8603 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.596e-05/0.7253, allocations: 0 / 0.8603 GB, free: 10.11 MB / 0.6075 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.005258/0.7305, allocations: 2.626 MB / 0.8629 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.7306, allocations: 8.031 kB / 0.8629 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.083e-05/0.7306, allocations: 38.86 kB / 0.8629 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.7309, allocations: 211.1 kB / 0.8631 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007695/0.7317, allocations: 270.4 kB / 0.8634 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.7341, allocations: 1.23 MB / 0.8646 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-05/0.7342, allocations: 110.9 kB / 0.8647 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/0.7344, allocations: 159.9 kB / 0.8648 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002836/0.7372, allocations: 1.648 MB / 0.8664 GB, free: 3.75 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.7373, allocations: 3.938 kB / 0.8665 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.7374, allocations: 64 kB / 0.8665 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.7374, allocations: 36 kB / 0.8665 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002675/0.7401, allocations: 1.512 MB / 0.868 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009796/0.7499, allocations: 7.079 MB / 0.8749 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002935/0.7528, allocations: 1.433 MB / 0.8763 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.754, allocations: 0.666 MB / 0.877 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005516/0.7596, allocations: 2.948 MB / 0.8799 GB, free: 5.477 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.209e-05/0.7596, allocations: 59.73 kB / 0.8799 GB, free: 5.41 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=166): time 2.665e-06/0.7596, allocations: 4 kB / 0.8799 GB, free: 5.406 MB / 0.6231 GB Notification: Performance of matching and sorting (n=166): time 0.00663/0.7663, allocations: 2.462 MB / 0.8823 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.7664, allocations: 183 kB / 0.8825 GB, free: 2.703 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/0.7681, allocations: 1.299 MB / 0.8838 GB, free: 1.398 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.7682, allocations: 57.7 kB / 0.8838 GB, free: 1.336 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007078/0.769, allocations: 0.8069 MB / 0.8846 GB, free: 0.5234 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/0.7695, allocations: 0.5949 MB / 0.8852 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004709/0.77, allocations: 291.5 kB / 0.8855 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.7701, allocations: 301.1 kB / 0.8858 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.7712, allocations: 499.8 kB / 0.8862 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.7726, allocations: 0.8288 MB / 0.887 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002581/0.7752, allocations: 1.427 MB / 0.8884 GB, free: 12.34 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.7752, allocations: 4 kB / 0.8884 GB, free: 12.34 MB / 0.6387 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003883/0.7791, allocations: 1.865 MB / 0.8903 GB, free: 10.46 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.7791, allocations: 8 kB / 0.8903 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.7791, allocations: 12 kB / 0.8903 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008327/0.7799, allocations: 232.5 kB / 0.8905 GB, free: 10.2 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.7814, allocations: 381.6 kB / 0.8909 GB, free: 9.824 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006689/0.7881, allocations: 7.172 MB / 0.8979 GB, free: 2.086 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.7895, allocations: 162.8 kB / 0.898 GB, free: 1.926 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/0.7898, allocations: 84.03 kB / 0.8981 GB, free: 1.844 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.000845/0.7906, allocations: 329.4 kB / 0.8984 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006359/0.7913, allocations: 198.7 kB / 0.8986 GB, free: 1.316 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004596/0.7959, allocations: 2.065 MB / 0.9006 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.7959, allocations: 20 kB / 0.9007 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/0.7959, allocations: 4 kB / 0.9007 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/0.7959, allocations: 8.156 kB / 0.9007 GB, free: 15.17 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007741/0.8037, allocations: 3.902 MB / 0.9045 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.8037, allocations: 8 kB / 0.9045 GB, free: 11.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.8048, allocations: 255.6 kB / 0.9047 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.8067, allocations: 479.4 kB / 0.9052 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001811/0.8069, allocations: 51.97 kB / 0.9052 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008859/0.8158, allocations: 9.456 MB / 0.9145 GB, free: 256 kB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.8158, allocations: 7.938 kB / 0.9145 GB, free: 248 kB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00595/0.8217, allocations: 2.866 MB / 0.9173 GB, free: 13.32 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007186/0.8225, allocations: 214.3 kB / 0.9175 GB, free: 13.11 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004312/0.8229, allocations: 39.94 kB / 0.9175 GB, free: 13.07 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.8242, allocations: 59.95 kB / 0.9176 GB, free: 13.01 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.8245, allocations: 132.6 kB / 0.9177 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/0.8247, allocations: 79.89 kB / 0.9178 GB, free: 12.8 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001597/0.8263, allocations: 0.9054 MB / 0.9187 GB, free: 11.9 MB / 0.67 GB Notification: Performance of sort global known variables: time 1e-07/0.8263, allocations: 0 / 0.9187 GB, free: 11.9 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002707/0.829, allocations: 0.7796 MB / 0.9194 GB, free: 11.12 MB / 0.67 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.006977/0.836, allocations: 4.09 MB / 0.9234 GB, free: 6.98 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003633/0.8396, allocations: 1.907 MB / 0.9253 GB, free: 5.012 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.8396, allocations: 4 kB / 0.9253 GB, free: 5.008 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002676/0.8423, allocations: 1.383 MB / 0.9266 GB, free: 3.562 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003411/0.8457, allocations: 0.6217 MB / 0.9272 GB, free: 2.961 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/0.8715, allocations: 14.44 MB / 0.9413 GB, free: 3.977 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.8728, allocations: 1.336 MB / 0.9426 GB, free: 2.613 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001324/0.8741, allocations: 350.3 kB / 0.943 GB, free: 2.266 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.8752, allocations: 0.7804 MB / 0.9437 GB, free: 1.484 MB / 0.6856 GB Notification: Performance of SimCode: time 1.062e-06/0.8752, allocations: 0 / 0.9437 GB, free: 1.484 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/1.03, allocations: 56.06 MB / 0.9985 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.12/18.15, allocations: 8.562 kB / 0.9985 GB, free: 9.816 MB / 0.7481 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.395689161960036]