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.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.001562/0.001562, allocations: 104.5 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.001522/0.001522, allocations: 188.6 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.431/1.431, allocations: 225.6 MB / 247.8 MB, free: 3.75 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.6219/0.6219, allocations: 94.6 MB / 397.3 MB, free: 484 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_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: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 87.86 kB / 0.5416 GB, free: 14.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.438/0.4402, allocations: 71.84 MB / 0.6118 GB, free: 4.148 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.04805/0.4883, allocations: 45.31 MB / 0.656 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.506, allocations: 12.32 MB / 0.6681 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.508, allocations: 53.22 kB / 0.6681 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.5105, allocations: 1.158 MB / 0.6692 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005591/0.5161, allocations: 2.096 MB / 0.6713 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003256/0.5194, allocations: 1.178 MB / 0.6724 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004175/0.5235, allocations: 2.81 MB / 0.6752 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000539/0.5241, allocations: 283.3 kB / 0.6755 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002716/0.5268, allocations: 1.434 MB / 0.6769 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.5282, allocations: 1.116 MB / 0.678 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002189/0.5285, allocations: 136 kB / 0.6781 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00336/0.5318, allocations: 1.19 MB / 0.6792 GB, free: 468 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005595/0.5324, allocations: 434.1 kB / 0.6797 GB, free: 32 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009889/0.5334, allocations: 0.9596 MB / 0.6806 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005316/0.5387, allocations: 2.906 MB / 0.6834 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.5387, allocations: 0 / 0.6834 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.224e-06/0.5387, allocations: 0 / 0.6834 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.819e-05/0.5388, allocations: 0 / 0.6834 GB, free: 12.15 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.005385/0.5441, allocations: 2.546 MB / 0.6859 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.5442, allocations: 12.03 kB / 0.6859 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002427/0.5444, allocations: 190.4 kB / 0.6861 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005299/0.545, allocations: 243.4 kB / 0.6863 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.5475, allocations: 1.364 MB / 0.6877 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.268e-05/0.5475, allocations: 98.72 kB / 0.6878 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.5478, allocations: 132 kB / 0.6879 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/0.5503, allocations: 1.497 MB / 0.6894 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.5504, allocations: 0 / 0.6894 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-05/0.5505, allocations: 52 kB / 0.6894 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.901e-05/0.5505, allocations: 32 kB / 0.6894 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.5532, allocations: 1.556 MB / 0.691 GB, free: 4.266 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007811/0.561, allocations: 6.257 MB / 0.6971 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002215/0.5632, allocations: 1.204 MB / 0.6982 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.5642, allocations: 0.6164 MB / 0.6988 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005733/0.57, allocations: 4.589 MB / 0.7033 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/0.5713, allocations: 0.6811 MB / 0.704 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=139): time 3.566e-06/0.5713, allocations: 0 / 0.704 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of matching and sorting (n=139): time 0.004498/0.5758, allocations: 2.125 MB / 0.7061 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.5758, allocations: 68.66 kB / 0.7061 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.5776, allocations: 1.301 MB / 0.7074 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.844e-05/0.5777, allocations: 53.69 kB / 0.7075 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006736/0.5783, allocations: 0.6993 MB / 0.7081 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004679/0.5788, allocations: 487.7 kB / 0.7086 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003688/0.5792, allocations: 254.8 kB / 0.7088 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001798/0.5794, allocations: 357.9 kB / 0.7092 GB, free: 272 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009126/0.5803, allocations: 462.4 kB / 0.7096 GB, free: 15.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.5814, allocations: 0.6201 MB / 0.7102 GB, free: 15.15 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.5835, allocations: 1.167 MB / 0.7114 GB, free: 13.94 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.5835, allocations: 0 / 0.7114 GB, free: 13.94 MB / 0.545 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00314/0.5866, allocations: 1.538 MB / 0.7129 GB, free: 12.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.5867, allocations: 33.7 kB / 0.7129 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.5867, allocations: 4 kB / 0.7129 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004608/0.5872, allocations: 109.7 kB / 0.713 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009981/0.5882, allocations: 275.6 kB / 0.7133 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/0.5915, allocations: 3.227 MB / 0.7164 GB, free: 8.441 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009318/0.5925, allocations: 119.1 kB / 0.7165 GB, free: 8.324 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.5926, allocations: 68.03 kB / 0.7166 GB, free: 8.258 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.0007967/0.5934, allocations: 393.3 kB / 0.717 GB, free: 7.863 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.5938, allocations: 178.8 kB / 0.7172 GB, free: 7.688 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004506/0.5983, allocations: 2.279 MB / 0.7194 GB, free: 5.445 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5983, allocations: 16 kB / 0.7194 GB, free: 5.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.5983, allocations: 7.938 kB / 0.7194 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/0.5983, allocations: 11.97 kB / 0.7194 GB, free: 5.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006465/0.6048, allocations: 3.449 MB / 0.7228 GB, free: 1.879 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.6048, allocations: 0 / 0.7228 GB, free: 1.879 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000999/0.6058, allocations: 287.6 kB / 0.7231 GB, free: 1.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003452/0.6061, allocations: 105.6 kB / 0.7232 GB, free: 1.488 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.6062, allocations: 56.09 kB / 0.7232 GB, free: 1.434 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003143/0.6094, allocations: 3.223 MB / 0.7264 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.6094, allocations: 4.031 kB / 0.7264 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004433/0.6138, allocations: 2.386 MB / 0.7287 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008632/0.6147, allocations: 487.2 kB / 0.7292 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.6149, allocations: 36.05 kB / 0.7292 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.6155, allocations: 43.98 kB / 0.7292 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/0.6157, allocations: 121.1 kB / 0.7293 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.6158, allocations: 59.97 kB / 0.7294 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001291/0.6171, allocations: 0.9112 MB / 0.7303 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6171, allocations: 0 / 0.7303 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0016/0.6187, allocations: 0.608 MB / 0.7309 GB, free: 9.227 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.006581/0.6253, allocations: 3.68 MB / 0.7345 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002912/0.6282, allocations: 1.5 MB / 0.7359 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.6282, allocations: 3.938 kB / 0.736 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.6298, allocations: 0.9387 MB / 0.7369 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.6319, allocations: 486.7 kB / 0.7373 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.6522, allocations: 11.79 MB / 0.7488 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.6533, allocations: 1.341 MB / 0.7502 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001247/0.6545, allocations: 400.3 kB / 0.7505 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.6555, allocations: 0.7648 MB / 0.7513 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of SimCode: time 1.172e-06/0.6555, allocations: 0 / 0.7513 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1041/0.7596, allocations: 44.87 MB / 0.7951 GB, free: 7.438 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.13, allocations: 12 kB / 0.7951 GB, free: 7.426 MB / 0.6231 GB " [Timeout remaining time 646] (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_2/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: 17.58992802305147]