Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.001568/0.001568, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001893/0.001893, allocations: 218.6 kB / 22.26 MB, free: 5.125 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.465/1.465, allocations: 230.6 MB / 256 MB, free: 7.984 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.8075/0.8075, allocations: 100.3 MB / 412.7 MB, free: 3.711 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.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",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.002467/0.002467, allocations: 80.91 kB / 0.5633 GB, free: 35.89 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1344, allocations: 74.46 MB / 0.636 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.05685/0.1913, allocations: 45.87 MB / 0.6808 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01924/0.2105, allocations: 12.51 MB / 0.693 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.2121, allocations: 75.31 kB / 0.6931 GB, free: 13 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002799/0.2149, allocations: 1.158 MB / 0.6942 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005621/0.2205, allocations: 2.156 MB / 0.6963 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003361/0.2239, allocations: 1.214 MB / 0.6975 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003738/0.2276, allocations: 2.856 MB / 0.7003 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.2283, allocations: 294.1 kB / 0.7006 GB, free: 5.27 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.2306, allocations: 1.46 MB / 0.702 GB, free: 3.805 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001557/0.2322, allocations: 1.12 MB / 0.7031 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.2324, allocations: 132 kB / 0.7032 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.2358, allocations: 1.225 MB / 0.7044 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004345/0.2362, allocations: 430.1 kB / 0.7048 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.2373, allocations: 0.9674 MB / 0.7058 GB, free: 15.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004744/0.242, allocations: 2.918 MB / 0.7086 GB, free: 13 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.242, allocations: 0 / 0.7086 GB, free: 13 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.382e-06/0.242, allocations: 0 / 0.7086 GB, free: 13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.936e-05/0.2421, allocations: 0 / 0.7086 GB, free: 13 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: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.004635/0.2467, allocations: 2.498 MB / 0.711 GB, free: 10.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.2467, allocations: 8.031 kB / 0.7111 GB, free: 10.44 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002222/0.247, allocations: 190.4 kB / 0.7112 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003555/0.2473, allocations: 239.4 kB / 0.7115 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.2498, allocations: 1.265 MB / 0.7127 GB, free: 8.703 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.424e-05/0.2499, allocations: 106.7 kB / 0.7128 GB, free: 8.598 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.2501, allocations: 135.9 kB / 0.7129 GB, free: 8.465 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00285/0.2529, allocations: 1.517 MB / 0.7144 GB, free: 6.906 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.2529, allocations: 0 / 0.7144 GB, free: 6.906 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.2531, allocations: 52 kB / 0.7145 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.614e-05/0.2532, allocations: 35.98 kB / 0.7145 GB, free: 6.82 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.2561, allocations: 1.615 MB / 0.7161 GB, free: 5.199 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008416/0.2645, allocations: 6.225 MB / 0.7221 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.2669, allocations: 1.211 MB / 0.7233 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.2679, allocations: 0.6164 MB / 0.7239 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004615/0.2725, allocations: 2.25 MB / 0.7261 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001346/0.2739, allocations: 0.6848 MB / 0.7268 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=139): time 2.816e-06/0.2739, allocations: 0 / 0.7268 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=139): time 0.004795/0.2787, allocations: 1.99 MB / 0.7287 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.2787, allocations: 68.72 kB / 0.7288 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.2806, allocations: 1.31 MB / 0.7301 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.273e-05/0.2806, allocations: 53.7 kB / 0.7301 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006914/0.2813, allocations: 0.7072 MB / 0.7308 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005137/0.2818, allocations: 495.7 kB / 0.7313 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003695/0.2822, allocations: 254.8 kB / 0.7315 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002305/0.2824, allocations: 353.9 kB / 0.7319 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.2835, allocations: 462.4 kB / 0.7323 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.2847, allocations: 0.6207 MB / 0.7329 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.287, allocations: 1.171 MB / 0.7341 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.287, allocations: 4 kB / 0.7341 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003259/0.2903, allocations: 1.549 MB / 0.7356 GB, free: 396 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.095e-05/0.2903, allocations: 38.08 kB / 0.7356 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2903, allocations: 7.938 kB / 0.7356 GB, free: 344 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.2907, allocations: 109.6 kB / 0.7357 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.2918, allocations: 275.6 kB / 0.736 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/0.295, allocations: 3.034 MB / 0.739 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008131/0.2958, allocations: 119.2 kB / 0.7391 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.296, allocations: 59.97 kB / 0.7391 GB, free: 12.52 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.000736/0.2967, allocations: 389.4 kB / 0.7395 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.297, allocations: 186.8 kB / 0.7397 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004731/0.3017, allocations: 2.29 MB / 0.7419 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.3017, allocations: 16 kB / 0.7419 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3017, allocations: 7.938 kB / 0.7419 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.718e-05/0.3017, allocations: 7.969 kB / 0.742 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006188/0.3079, allocations: 3.433 MB / 0.7453 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.3079, allocations: 4 kB / 0.7453 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.309, allocations: 283.6 kB / 0.7456 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000322/0.3093, allocations: 117.7 kB / 0.7457 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.902e-05/0.3094, allocations: 51.91 kB / 0.7457 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/0.3124, allocations: 3.028 MB / 0.7487 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3124, allocations: 0 / 0.7487 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/0.3168, allocations: 2.402 MB / 0.751 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2733/0.5901, allocations: 412.4 kB / 0.7514 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.5903, allocations: 33.44 kB / 0.7515 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/0.5911, allocations: 44.92 kB / 0.7515 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003832/0.5914, allocations: 130.1 kB / 0.7516 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5916, allocations: 59.22 kB / 0.7517 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001247/0.5928, allocations: 0.9246 MB / 0.7526 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.5928, allocations: 0 / 0.7526 GB, free: 109.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001689/0.5945, allocations: 0.6037 MB / 0.7532 GB, free: 109.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.rear.m_flow,flowResistance2.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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.006666/0.6012, allocations: 3.704 MB / 0.7568 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003061/0.6042, allocations: 1.514 MB / 0.7583 GB, free: 107.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.6042, allocations: 2.688 kB / 0.7583 GB, free: 107.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.6057, allocations: 0.9368 MB / 0.7592 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/0.608, allocations: 0.4946 MB / 0.7597 GB, free: 107 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01939/0.6274, allocations: 11.87 MB / 0.7713 GB, free: 101.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009285/0.6283, allocations: 1.352 MB / 0.7726 GB, free: 100.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001248/0.6296, allocations: 408.7 kB / 0.773 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000735/0.6303, allocations: 0.7612 MB / 0.7737 GB, free: 100.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/0.6303, allocations: 6.953 kB / 0.7737 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/0.7113, allocations: 46.05 MB / 0.8187 GB, free: 59.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.88, allocations: 3.984 kB / 0.8187 GB, free: 59.29 MB / 0.5762 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.SpecificValveType_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.59175405697897]