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.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.001796/0.001796, allocations: 78.17 kB / 19.18 MB, free: 2.516 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.001522/0.001522, allocations: 164 kB / 22.46 MB, free: 5.375 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.46/1.46, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.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 1.001/1.001, allocations: 116 MB / 375.2 MB, free: 7.535 MB / 350.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 0.5537 GB, free: 13.76 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.599e-05/2.769e-05, allocations: 6.219 kB / 0.5538 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07348/0.07351, allocations: 60.71 MB / 0.613 GB, free: 0.8359 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02424/0.09775, allocations: 16.21 MB / 0.6289 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.1002, allocations: 114.9 kB / 0.629 GB, free: 472 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003481/0.1037, allocations: 1.109 MB / 0.6301 GB, free: 15.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008827/0.1126, allocations: 3.092 MB / 0.6331 GB, free: 12.23 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005385/0.1179, allocations: 1.623 MB / 0.6347 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006786/0.1247, allocations: 4.324 MB / 0.6389 GB, free: 6.254 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.1261, allocations: 375 kB / 0.6392 GB, free: 5.863 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006523/0.1326, allocations: 2.337 MB / 0.6415 GB, free: 3.52 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002943/0.1355, allocations: 1.293 MB / 0.6428 GB, free: 2.223 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0007835/0.1363, allocations: 188 kB / 0.643 GB, free: 2.039 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005288/0.1416, allocations: 1.52 MB / 0.6445 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0008621/0.1425, allocations: 0.4938 MB / 0.6449 GB, free: 20 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.1448, allocations: 0.9198 MB / 0.6458 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008861/0.1537, allocations: 3.886 MB / 0.6496 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1537, allocations: 0 / 0.6496 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1537, allocations: 0 / 0.6496 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001117/0.1538, allocations: 3.938 kB / 0.6496 GB, free: 11.19 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.007593/0.1614, allocations: 2.997 MB / 0.6526 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1614, allocations: 16.03 kB / 0.6526 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.1628, allocations: 351 kB / 0.6529 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003275/0.1661, allocations: 1.362 MB / 0.6542 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.1663, allocations: 144.1 kB / 0.6544 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004298/0.1667, allocations: 192.3 kB / 0.6546 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004696/0.1714, allocations: 2.235 MB / 0.6567 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.607e-05/0.1714, allocations: 4.188 kB / 0.6567 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.1716, allocations: 80.12 kB / 0.6568 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.404e-05/0.1717, allocations: 48 kB / 0.6569 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004558/0.1762, allocations: 2.295 MB / 0.6591 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.1874, allocations: 5.059 MB / 0.664 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003755/0.1911, allocations: 1.785 MB / 0.6658 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.193, allocations: 0.8776 MB / 0.6666 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007493/0.2005, allocations: 2.796 MB / 0.6694 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002294/0.2028, allocations: 1.105 MB / 0.6705 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 6.823e-06/0.2028, allocations: 0 / 0.6705 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.007111/0.2099, allocations: 2.746 MB / 0.6731 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.21, allocations: 150.5 kB / 0.6733 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/0.2118, allocations: 1.145 MB / 0.6744 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002424/0.2121, allocations: 61.7 kB / 0.6745 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009033/0.213, allocations: 0.8756 MB / 0.6753 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008378/0.2138, allocations: 0.6933 MB / 0.676 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006666/0.2145, allocations: 319.5 kB / 0.6763 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2146, allocations: 305.1 kB / 0.6766 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.2161, allocations: 0.6693 MB / 0.6772 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.218, allocations: 0.9978 MB / 0.6782 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003489/0.2214, allocations: 1.66 MB / 0.6798 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.2215, allocations: 0 / 0.6798 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005249/0.2267, allocations: 2.166 MB / 0.682 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/0.2268, allocations: 33.7 kB / 0.682 GB, free: 9.441 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.2268, allocations: 4 kB / 0.682 GB, free: 9.438 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006712/0.2275, allocations: 166.5 kB / 0.6821 GB, free: 9.266 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.229, allocations: 391.4 kB / 0.6825 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004962/0.2339, allocations: 4.435 MB / 0.6869 GB, free: 4.145 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.2353, allocations: 150.9 kB / 0.687 GB, free: 3.996 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/0.2356, allocations: 87.95 kB / 0.6871 GB, free: 3.91 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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.0009799/0.2366, allocations: 356.2 kB / 0.6874 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006237/0.2372, allocations: 206.7 kB / 0.6876 GB, free: 3.352 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006779/0.244, allocations: 3.101 MB / 0.6906 GB, free: 328 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.244, allocations: 20 kB / 0.6907 GB, free: 308 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.244, allocations: 4 kB / 0.6907 GB, free: 304 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.655e-05/0.244, allocations: 19.88 kB / 0.6907 GB, free: 284 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2604/0.5044, allocations: 4.035 MB / 0.6946 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.5044, allocations: 2.344 kB / 0.6946 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.5058, allocations: 388.6 kB / 0.695 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005597/0.5063, allocations: 164.3 kB / 0.6952 GB, free: 133.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.5065, allocations: 70.77 kB / 0.6952 GB, free: 133.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003232/0.5097, allocations: 4.41 MB / 0.6995 GB, free: 129.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5097, allocations: 9.844 kB / 0.6995 GB, free: 129.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007003/0.5167, allocations: 3.21 MB / 0.7027 GB, free: 127.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/0.518, allocations: 439.4 kB / 0.7031 GB, free: 127.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00045/0.5184, allocations: 43.42 kB / 0.7031 GB, free: 127.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.5196, allocations: 55.02 kB / 0.7032 GB, free: 127.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004902/0.5201, allocations: 178.2 kB / 0.7034 GB, free: 127.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/0.5203, allocations: 82.11 kB / 0.7034 GB, free: 127.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001412/0.5218, allocations: 0.7836 MB / 0.7042 GB, free: 127.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.5218, allocations: 1.656 kB / 0.7042 GB, free: 127.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002637/0.5244, allocations: 0.8633 MB / 0.705 GB, free: 127 MB / 0.5919 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 (213): * Single equations (assignments): 208 * 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.001291/0.5257, allocations: 0.7852 MB / 0.7058 GB, free: 126.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.004059/0.5297, allocations: 2.134 MB / 0.7079 GB, free: 125.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.5298, allocations: 2.312 kB / 0.7079 GB, free: 125.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002098/0.5319, allocations: 1.307 MB / 0.7092 GB, free: 125.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004217/0.5361, allocations: 0.8375 MB / 0.71 GB, free: 124.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008747/0.5448, allocations: 4.202 MB / 0.7141 GB, free: 123.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.5455, allocations: 0.889 MB / 0.715 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001572/0.5471, allocations: 487.8 kB / 0.7154 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005292/0.5476, allocations: 225.6 kB / 0.7156 GB, free: 122 MB / 0.5919 GB Notification: Performance of SimCode: time 1.092e-06/0.5476, allocations: 0 / 0.7156 GB, free: 122 MB / 0.5919 GB Notification: Performance of Templates: time 0.05689/0.6045, allocations: 43.38 MB / 0.758 GB, free: 80.12 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.741381298750639]