Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.001277/0.001277, allocations: 105.6 kB / 16.45 MB, free: 6.445 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.001261/0.001261, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.408/1.408, allocations: 225.6 MB / 247.8 MB, free: 3.742 MB / 190.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.606/0.606, allocations: 94.6 MB / 397.3 MB, free: 488 kB / 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-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.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 75.88 kB / 0.5416 GB, free: 14.03 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3714, allocations: 71.85 MB / 0.6118 GB, free: 3.965 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.0477/0.4191, allocations: 45.32 MB / 0.656 GB, free: 2.574 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.4362, allocations: 12.32 MB / 0.6681 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.4386, allocations: 58 kB / 0.6681 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.4419, allocations: 1.158 MB / 0.6692 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006837/0.4487, allocations: 2.096 MB / 0.6713 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004009/0.4527, allocations: 1.178 MB / 0.6724 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005289/0.458, allocations: 2.806 MB / 0.6752 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000836/0.4589, allocations: 294.9 kB / 0.6755 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.462, allocations: 1.422 MB / 0.6769 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.4642, allocations: 1.122 MB / 0.678 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004593/0.4647, allocations: 132 kB / 0.6781 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003832/0.4685, allocations: 1.186 MB / 0.6792 GB, free: 376 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004976/0.469, allocations: 442.1 kB / 0.6797 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.4702, allocations: 0.9517 MB / 0.6806 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004546/0.4748, allocations: 2.91 MB / 0.6834 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4748, allocations: 0 / 0.6834 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4748, allocations: 4 kB / 0.6834 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.132e-05/0.4748, allocations: 0 / 0.6834 GB, free: 12.05 MB / 0.5137 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.004409/0.4792, allocations: 2.538 MB / 0.6859 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4792, allocations: 12.03 kB / 0.6859 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.4795, allocations: 194.4 kB / 0.6861 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003717/0.4798, allocations: 243.4 kB / 0.6863 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/0.4821, allocations: 1.364 MB / 0.6877 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.698e-05/0.4822, allocations: 102.7 kB / 0.6878 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.4824, allocations: 128 kB / 0.6879 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.4848, allocations: 1.489 MB / 0.6893 GB, free: 5.824 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.4848, allocations: 3.984 kB / 0.6893 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.871e-05/0.4849, allocations: 52 kB / 0.6894 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.4849, allocations: 32 kB / 0.6894 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/0.4875, allocations: 1.56 MB / 0.691 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007608/0.4951, allocations: 6.261 MB / 0.6971 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002149/0.4972, allocations: 1.2 MB / 0.6982 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.4983, allocations: 0.6125 MB / 0.6988 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005635/0.5039, allocations: 4.593 MB / 0.7033 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.5051, allocations: 0.6731 MB / 0.704 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=139): time 2.966e-06/0.5051, allocations: 0 / 0.704 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of matching and sorting (n=139): time 0.004333/0.5095, allocations: 2.133 MB / 0.7061 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.5095, allocations: 68.72 kB / 0.7061 GB, free: 3.344 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.5112, allocations: 1.297 MB / 0.7074 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.732e-05/0.5112, allocations: 57.7 kB / 0.7074 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.5118, allocations: 0.7031 MB / 0.7081 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004054/0.5122, allocations: 491.7 kB / 0.7086 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003654/0.5126, allocations: 254.8 kB / 0.7088 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.5128, allocations: 349.9 kB / 0.7092 GB, free: 180 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000873/0.5136, allocations: 466.4 kB / 0.7096 GB, free: 15.72 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.5147, allocations: 0.6239 MB / 0.7102 GB, free: 15.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.5167, allocations: 1.155 MB / 0.7114 GB, free: 13.85 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.5167, allocations: 3.984 kB / 0.7114 GB, free: 13.85 MB / 0.545 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002972/0.5197, allocations: 1.542 MB / 0.7129 GB, free: 12.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.5197, allocations: 29.7 kB / 0.7129 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5197, allocations: 4 kB / 0.7129 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/0.5201, allocations: 101.6 kB / 0.713 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009414/0.5211, allocations: 283.6 kB / 0.7133 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.524, allocations: 3.223 MB / 0.7164 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008357/0.5249, allocations: 119.1 kB / 0.7165 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.525, allocations: 63.97 kB / 0.7166 GB, free: 8.176 MB / 0.545 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.0006864/0.5257, allocations: 399.5 kB / 0.717 GB, free: 7.777 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.526, allocations: 182.8 kB / 0.7172 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004187/0.5302, allocations: 2.273 MB / 0.7194 GB, free: 5.363 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.5302, allocations: 16 kB / 0.7194 GB, free: 5.348 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.5302, allocations: 7.922 kB / 0.7194 GB, free: 5.34 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5302, allocations: 7.969 kB / 0.7194 GB, free: 5.332 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006009/0.5362, allocations: 3.461 MB / 0.7228 GB, free: 1.789 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.5362, allocations: 4 kB / 0.7228 GB, free: 1.785 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009477/0.5372, allocations: 283.6 kB / 0.7231 GB, free: 1.508 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003496/0.5375, allocations: 109.8 kB / 0.7232 GB, free: 1.395 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.5376, allocations: 51.91 kB / 0.7232 GB, free: 1.344 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003176/0.5408, allocations: 3.223 MB / 0.7264 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.5408, allocations: 3.984 kB / 0.7264 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004653/0.5455, allocations: 2.39 MB / 0.7287 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000945/0.5464, allocations: 483.1 kB / 0.7292 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002331/0.5466, allocations: 35.98 kB / 0.7292 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006487/0.5473, allocations: 39.98 kB / 0.7292 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.5475, allocations: 129.1 kB / 0.7294 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5476, allocations: 59.97 kB / 0.7294 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001314/0.549, allocations: 0.9151 MB / 0.7303 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.549, allocations: 0 / 0.7303 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002114/0.5511, allocations: 0.6041 MB / 0.7309 GB, free: 9.133 MB / 0.5606 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.007377/0.5584, allocations: 3.682 MB / 0.7345 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003304/0.5618, allocations: 1.499 MB / 0.736 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.5618, allocations: 0 / 0.736 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.5634, allocations: 0.9427 MB / 0.7369 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/0.5657, allocations: 486.2 kB / 0.7373 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01896/0.5847, allocations: 11.79 MB / 0.7489 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/0.5857, allocations: 1.338 MB / 0.7502 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001238/0.587, allocations: 403.6 kB / 0.7505 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/0.588, allocations: 0.7609 MB / 0.7513 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of SimCode: time 9.62e-07/0.588, allocations: 0 / 0.7513 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1227/0.7108, allocations: 44.87 MB / 0.7951 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.61, allocations: 10.83 kB / 0.7951 GB, free: 7.344 MB / 0.6231 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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_2/OpenModelicaLibraryTesting/files/ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.03622327791527]