Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.00155/0.00155, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001878/0.001878, allocations: 213.1 kB / 22.25 MB, free: 5.121 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.433/1.433, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.74/0.74, allocations: 94.57 MB / 407 MB, free: 9.207 MB / 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/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.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",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.002622/0.002622, allocations: 81.06 kB / 0.555 GB, free: 38.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1254, allocations: 73.05 MB / 0.6263 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.0715/0.1969, allocations: 66.38 MB / 0.6911 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02221/0.2191, allocations: 17.7 MB / 0.7084 GB, free: 12.13 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.2215, allocations: 114.9 kB / 0.7085 GB, free: 12.02 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.2249, allocations: 1.199 MB / 0.7097 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008657/0.2336, allocations: 2.878 MB / 0.7125 GB, free: 7.914 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005257/0.2389, allocations: 1.596 MB / 0.7141 GB, free: 6.312 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00621/0.2451, allocations: 3.918 MB / 0.7179 GB, free: 2.375 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.2461, allocations: 391.3 kB / 0.7183 GB, free: 1.965 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003263/0.2494, allocations: 1.677 MB / 0.7199 GB, free: 288 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002598/0.252, allocations: 1.567 MB / 0.7214 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0005931/0.2526, allocations: 192 kB / 0.7216 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005246/0.2578, allocations: 1.763 MB / 0.7233 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0007653/0.2586, allocations: 0.4939 MB / 0.7238 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002008/0.2606, allocations: 1.251 MB / 0.725 GB, free: 11 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008053/0.2686, allocations: 3.845 MB / 0.7288 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2686, allocations: 0 / 0.7288 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2686, allocations: 0 / 0.7288 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001085/0.2687, allocations: 0 / 0.7288 GB, free: 7.141 MB / 0.5606 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.006856/0.2756, allocations: 3.004 MB / 0.7317 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2756, allocations: 8.031 kB / 0.7317 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000476/0.2761, allocations: 266.3 kB / 0.732 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006571/0.2768, allocations: 291.2 kB / 0.7323 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002983/0.2798, allocations: 1.378 MB / 0.7336 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.2799, allocations: 148.1 kB / 0.7337 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003258/0.2802, allocations: 196.3 kB / 0.7339 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003962/0.2842, allocations: 2.202 MB / 0.7361 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.2842, allocations: 4 kB / 0.7361 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.2844, allocations: 76 kB / 0.7362 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.438e-05/0.2844, allocations: 48 kB / 0.7362 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.2885, allocations: 2.345 MB / 0.7385 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.3004, allocations: 8.934 MB / 0.7472 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003375/0.3038, allocations: 1.789 MB / 0.749 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.3053, allocations: 0.8906 MB / 0.7498 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.27/0.5753, allocations: 3.171 MB / 0.7529 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001719/0.577, allocations: 0.9624 MB / 0.7539 GB, free: 117.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 3.757e-06/0.577, allocations: 0 / 0.7539 GB, free: 117.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.005546/0.5826, allocations: 2.793 MB / 0.7566 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.5826, allocations: 76.38 kB / 0.7567 GB, free: 116.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.5839, allocations: 1.234 MB / 0.7579 GB, free: 116.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.227e-05/0.584, allocations: 62.55 kB / 0.7579 GB, free: 116 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005095/0.5845, allocations: 0.8743 MB / 0.7588 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.5849, allocations: 0.6973 MB / 0.7595 GB, free: 115 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004204/0.5853, allocations: 329 kB / 0.7598 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.597e-05/0.5854, allocations: 306.9 kB / 0.7601 GB, free: 114.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.5864, allocations: 0.6588 MB / 0.7607 GB, free: 114.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.5875, allocations: 0.8946 MB / 0.7616 GB, free: 113.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.5904, allocations: 1.68 MB / 0.7632 GB, free: 113 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.5904, allocations: 3.812 kB / 0.7632 GB, free: 113 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003919/0.5943, allocations: 2.176 MB / 0.7654 GB, free: 112 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.5944, allocations: 37.98 kB / 0.7654 GB, free: 112 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.5944, allocations: 5.047 kB / 0.7654 GB, free: 112 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005121/0.5949, allocations: 156.4 kB / 0.7656 GB, free: 111.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.5963, allocations: 401.1 kB / 0.7659 GB, free: 111.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.5992, allocations: 4.534 MB / 0.7704 GB, free: 107.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.6003, allocations: 166.7 kB / 0.7705 GB, free: 107.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.6004, allocations: 85.02 kB / 0.7706 GB, free: 107.6 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.000703/0.6011, allocations: 356.7 kB / 0.7709 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004079/0.6016, allocations: 209.8 kB / 0.7711 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00501/0.6066, allocations: 3.434 MB / 0.7745 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.6066, allocations: 30.7 kB / 0.7745 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.6066, allocations: 0 / 0.7745 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.6066, allocations: 10.88 kB / 0.7745 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00621/0.6128, allocations: 4.75 MB / 0.7792 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.6128, allocations: 0 / 0.7792 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.614, allocations: 405.2 kB / 0.7796 GB, free: 103.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.6144, allocations: 167.6 kB / 0.7797 GB, free: 103.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.6145, allocations: 77.14 kB / 0.7798 GB, free: 103.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/0.6171, allocations: 4.532 MB / 0.7842 GB, free: 98.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6171, allocations: 3.25 kB / 0.7842 GB, free: 98.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004599/0.6217, allocations: 3.355 MB / 0.7875 GB, free: 97.03 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007004/0.6224, allocations: 473.7 kB / 0.788 GB, free: 96.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.6226, allocations: 50.81 kB / 0.788 GB, free: 96.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007022/0.6233, allocations: 58.38 kB / 0.7881 GB, free: 96.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.6236, allocations: 177.7 kB / 0.7882 GB, free: 96.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.6237, allocations: 83.95 kB / 0.7883 GB, free: 96.24 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008013/0.6245, allocations: 0.8642 MB / 0.7892 GB, free: 95.39 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.6245, allocations: 3.938 kB / 0.7892 GB, free: 95.38 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001745/0.6262, allocations: 0.868 MB / 0.79 GB, free: 94.57 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.005346/0.6316, allocations: 4.642 MB / 0.7945 GB, free: 90.07 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002922/0.6345, allocations: 2.167 MB / 0.7967 GB, free: 87.86 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.6345, allocations: 0 / 0.7967 GB, free: 87.86 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.6361, allocations: 1.367 MB / 0.798 GB, free: 86.46 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.6385, allocations: 0.6516 MB / 0.7986 GB, free: 85.84 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/0.6557, allocations: 14.63 MB / 0.8129 GB, free: 70.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006704/0.6564, allocations: 1.475 MB / 0.8144 GB, free: 69.32 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001449/0.6578, allocations: 0.5038 MB / 0.8148 GB, free: 68.91 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000992/0.6588, allocations: 0.9952 MB / 0.8158 GB, free: 67.91 MB / 0.5762 GB Notification: Performance of SimCode: time 1.613e-06/0.6588, allocations: 0 / 0.8158 GB, free: 67.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09916/0.758, allocations: 62.23 MB / 0.8766 GB, free: 6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/16.54, allocations: 4.062 kB / 0.8766 GB, free: 5.996 MB / 0.5762 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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/OpenModelicaLibraryTesting/files/ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.17812630091794]