Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 107.2 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8055/0.8055, allocations: 94.6 MB / 397.3 MB, free: 288 kB / 302.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-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.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002484/0.002484, allocations: 85.53 kB / 0.5416 GB, free: 42.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.136, allocations: 71.86 MB / 0.6118 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07997/0.216, allocations: 65.6 MB / 0.6759 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02635/0.2423, allocations: 17.65 MB / 0.6931 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002686/0.245, allocations: 83.44 kB / 0.6932 GB, free: 6.457 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003637/0.2487, allocations: 1.191 MB / 0.6943 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.009828/0.2585, allocations: 2.862 MB / 0.6971 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005712/0.2642, allocations: 1.553 MB / 0.6986 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006545/0.2708, allocations: 3.891 MB / 0.7024 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008459/0.2716, allocations: 394.8 kB / 0.7028 GB, free: 12.49 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003612/0.2752, allocations: 1.619 MB / 0.7044 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001986/0.2772, allocations: 1.571 MB / 0.7059 GB, free: 9.285 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003896/0.2776, allocations: 188 kB / 0.7061 GB, free: 9.102 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005646/0.2832, allocations: 1.732 MB / 0.7078 GB, free: 7.367 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0005949/0.2838, allocations: 497.8 kB / 0.7083 GB, free: 6.879 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.2856, allocations: 1.263 MB / 0.7095 GB, free: 5.609 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007152/0.2927, allocations: 3.837 MB / 0.7133 GB, free: 1.758 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2927, allocations: 0 / 0.7133 GB, free: 1.758 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2927, allocations: 0 / 0.7133 GB, free: 1.758 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.151e-05/0.2928, allocations: 0 / 0.7133 GB, free: 1.758 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.00661/0.2994, allocations: 3.076 MB / 0.7163 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2994, allocations: 8.031 kB / 0.7163 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004053/0.2998, allocations: 262.3 kB / 0.7165 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004951/0.3003, allocations: 299.1 kB / 0.7168 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002989/0.3033, allocations: 1.497 MB / 0.7183 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.3034, allocations: 140.1 kB / 0.7184 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003839/0.3038, allocations: 200.3 kB / 0.7186 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003845/0.3077, allocations: 2.159 MB / 0.7207 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.3077, allocations: 4 kB / 0.7207 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/0.3078, allocations: 76 kB / 0.7208 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-05/0.3079, allocations: 47.94 kB / 0.7208 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004299/0.3122, allocations: 2.271 MB / 0.723 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.3246, allocations: 8.97 MB / 0.7318 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003644/0.3283, allocations: 1.777 MB / 0.7335 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.33, allocations: 0.8759 MB / 0.7344 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/0.3405, allocations: 6.801 MB / 0.741 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001984/0.3425, allocations: 0.9445 MB / 0.742 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 3.477e-06/0.3425, allocations: 0 / 0.742 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.3111/0.6536, allocations: 3.01 MB / 0.7449 GB, free: 127 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.6536, allocations: 78.39 kB / 0.745 GB, free: 126.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.6555, allocations: 1.231 MB / 0.7462 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.6557, allocations: 64.73 kB / 0.7462 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000468/0.6562, allocations: 0.8693 MB / 0.7471 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004432/0.6566, allocations: 0.6958 MB / 0.7478 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005948/0.6572, allocations: 331.5 kB / 0.7481 GB, free: 126.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.742e-05/0.6572, allocations: 307.4 kB / 0.7484 GB, free: 126 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.6584, allocations: 0.6468 MB / 0.749 GB, free: 125.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.6599, allocations: 0.8879 MB / 0.7499 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002557/0.6625, allocations: 1.671 MB / 0.7515 GB, free: 124.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.6625, allocations: 2.625 kB / 0.7515 GB, free: 124.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004188/0.6667, allocations: 2.158 MB / 0.7536 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.6667, allocations: 34.03 kB / 0.7537 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.6667, allocations: 5.562 kB / 0.7537 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005172/0.6672, allocations: 163.2 kB / 0.7538 GB, free: 123.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.6687, allocations: 399.3 kB / 0.7542 GB, free: 123.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003852/0.6725, allocations: 4.841 MB / 0.7589 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.6737, allocations: 163.1 kB / 0.7591 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002136/0.6739, allocations: 88.25 kB / 0.7592 GB, free: 118.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006285/0.6745, allocations: 363 kB / 0.7595 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005763/0.6751, allocations: 206.1 kB / 0.7597 GB, free: 118.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006151/0.6813, allocations: 3.411 MB / 0.763 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.6813, allocations: 22 kB / 0.7631 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.6813, allocations: 2.75 kB / 0.7631 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/0.6813, allocations: 10.97 kB / 0.7631 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007165/0.6885, allocations: 4.778 MB / 0.7677 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.6885, allocations: 0 / 0.7677 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.6897, allocations: 404.6 kB / 0.7681 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004979/0.6902, allocations: 165.8 kB / 0.7683 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.6903, allocations: 76.67 kB / 0.7684 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002899/0.6932, allocations: 4.834 MB / 0.7731 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6932, allocations: 1.531 kB / 0.7731 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/0.6986, allocations: 3.326 MB / 0.7763 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008071/0.6994, allocations: 0.5371 MB / 0.7768 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.6996, allocations: 51.38 kB / 0.7769 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007216/0.7004, allocations: 54.47 kB / 0.7769 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.7006, allocations: 179.5 kB / 0.7771 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.7008, allocations: 89.08 kB / 0.7772 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001082/0.7018, allocations: 0.8566 MB / 0.778 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7018, allocations: 0 / 0.778 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002319/0.7042, allocations: 0.8741 MB / 0.7789 GB, free: 107.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006246/0.7104, allocations: 4.625 MB / 0.7834 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003325/0.7137, allocations: 2.144 MB / 0.7855 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7137, allocations: 3.688 kB / 0.7855 GB, free: 100.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.7157, allocations: 1.362 MB / 0.7868 GB, free: 99.22 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.7183, allocations: 0.6623 MB / 0.7875 GB, free: 98.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.7375, allocations: 14.58 MB / 0.8017 GB, free: 83.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007819/0.7383, allocations: 1.477 MB / 0.8032 GB, free: 82.15 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001538/0.7398, allocations: 0.4997 MB / 0.8036 GB, free: 81.68 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/0.7408, allocations: 0.9952 MB / 0.8046 GB, free: 80.68 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/0.7408, allocations: 4 kB / 0.8046 GB, free: 80.68 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/0.8612, allocations: 60.8 MB / 0.864 GB, free: 20.25 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/15.31, allocations: 14.33 kB / 0.864 GB, free: 20.24 MB / 0.5762 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.070688252802938]