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.001652/0.001652, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002233/0.002233, allocations: 159.8 kB / 23.01 MB, free: 4.602 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.476/1.476, allocations: 177.2 MB / 203.4 MB, free: 9 MB / 190.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.712/0.712, allocations: 74.91 MB / 334.7 MB, free: 15.98 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: 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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [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.002584/0.002584, allocations: 80.41 kB / 496.4 MB, free: 29.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1133, allocations: 73.03 MB / 0.5561 GB, free: 15.51 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07201/0.1853, allocations: 59.77 MB / 0.6144 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02274/0.2081, allocations: 16.04 MB / 0.6301 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002036/0.2101, allocations: 111 kB / 0.6302 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.2129, allocations: 1.071 MB / 0.6312 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0076/0.2205, allocations: 2.843 MB / 0.634 GB, free: 15.4 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004501/0.225, allocations: 1.589 MB / 0.6356 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00544/0.2304, allocations: 3.914 MB / 0.6394 GB, free: 9.875 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000756/0.2312, allocations: 379 kB / 0.6398 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.2342, allocations: 1.665 MB / 0.6414 GB, free: 7.805 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.2364, allocations: 1.442 MB / 0.6428 GB, free: 6.355 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.2367, allocations: 192 kB / 0.643 GB, free: 6.168 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004094/0.2408, allocations: 1.498 MB / 0.6444 GB, free: 4.668 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0005279/0.2413, allocations: 497.8 kB / 0.6449 GB, free: 4.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.2426, allocations: 1.034 MB / 0.6459 GB, free: 3.141 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006322/0.2489, allocations: 3.786 MB / 0.6496 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.2489, allocations: 7.984 kB / 0.6496 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2489, allocations: 4 kB / 0.6496 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.457e-05/0.249, allocations: 0 / 0.6496 GB, free: 15.33 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.006021/0.255, allocations: 2.989 MB / 0.6525 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.255, allocations: 8.031 kB / 0.6526 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/0.2561, allocations: 351.1 kB / 0.6529 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002717/0.2588, allocations: 1.367 MB / 0.6542 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.259, allocations: 140.1 kB / 0.6544 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.2593, allocations: 192.3 kB / 0.6545 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003788/0.2631, allocations: 2.242 MB / 0.6567 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.01e-05/0.2631, allocations: 0 / 0.6567 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.2632, allocations: 76 kB / 0.6568 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/0.2633, allocations: 44 kB / 0.6568 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004035/0.2673, allocations: 2.306 MB / 0.6591 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008999/0.2763, allocations: 4.993 MB / 0.664 GB, free: 416 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003361/0.2797, allocations: 1.793 MB / 0.6657 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.2812, allocations: 0.8698 MB / 0.6666 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006178/0.2874, allocations: 2.788 MB / 0.6693 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/0.2894, allocations: 1.105 MB / 0.6704 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.308e-06/0.2894, allocations: 3.938 kB / 0.6704 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.006243/0.2956, allocations: 2.738 MB / 0.6731 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.2957, allocations: 150.5 kB / 0.6732 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.2972, allocations: 1.153 MB / 0.6743 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.2974, allocations: 61.7 kB / 0.6744 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007966/0.2982, allocations: 0.8757 MB / 0.6752 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006519/0.2988, allocations: 0.6932 MB / 0.6759 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004924/0.2993, allocations: 323.5 kB / 0.6762 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.2994, allocations: 305.1 kB / 0.6765 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.3008, allocations: 0.6655 MB / 0.6772 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/0.3025, allocations: 0.9901 MB / 0.6781 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/0.3056, allocations: 1.668 MB / 0.6798 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3056, allocations: 0 / 0.6798 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004418/0.31, allocations: 2.158 MB / 0.6819 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.976e-05/0.3101, allocations: 33.7 kB / 0.6819 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.3101, allocations: 7.938 kB / 0.6819 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.3107, allocations: 162.5 kB / 0.6821 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.3122, allocations: 387.5 kB / 0.6824 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004582/0.3167, allocations: 4.439 MB / 0.6868 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.3178, allocations: 150.9 kB / 0.6869 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.318, allocations: 88.09 kB / 0.687 GB, free: 8.137 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.0007495/0.3188, allocations: 353.5 kB / 0.6873 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.3192, allocations: 206.7 kB / 0.6875 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006088/0.3252, allocations: 3.086 MB / 0.6905 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.3253, allocations: 23.94 kB / 0.6906 GB, free: 4.535 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3253, allocations: 4 kB / 0.6906 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.3253, allocations: 11.95 kB / 0.6906 GB, free: 4.52 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007712/0.333, allocations: 4.051 MB / 0.6945 GB, free: 396 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.333, allocations: 0 / 0.6945 GB, free: 396 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.3344, allocations: 383.5 kB / 0.6949 GB, free: 12 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2635/0.598, allocations: 155.2 kB / 0.6951 GB, free: 132.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003517/0.5983, allocations: 68.48 kB / 0.6951 GB, free: 132.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003023/0.6013, allocations: 4.426 MB / 0.6994 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6013, allocations: 10.31 kB / 0.6994 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005374/0.6067, allocations: 3.212 MB / 0.7026 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007403/0.6074, allocations: 433.6 kB / 0.703 GB, free: 128.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.6076, allocations: 46.31 kB / 0.703 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007632/0.6084, allocations: 55.02 kB / 0.7031 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.6087, allocations: 179.8 kB / 0.7033 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.6088, allocations: 75.41 kB / 0.7033 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0009162/0.6097, allocations: 0.7889 MB / 0.7041 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6097, allocations: 0 / 0.7041 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001798/0.6115, allocations: 0.813 MB / 0.7049 GB, free: 127.9 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.001037/0.6126, allocations: 0.7809 MB / 0.7057 GB, free: 127.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003756/0.6163, allocations: 2.133 MB / 0.7077 GB, free: 126.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.6163, allocations: 1.094 kB / 0.7077 GB, free: 126.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002/0.6183, allocations: 1.308 MB / 0.709 GB, free: 126 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.6209, allocations: 0.571 MB / 0.7096 GB, free: 125.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006731/0.6276, allocations: 3.847 MB / 0.7133 GB, free: 124 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000968/0.6286, allocations: 0.8914 MB / 0.7142 GB, free: 123.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001548/0.6302, allocations: 472.4 kB / 0.7147 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004588/0.6306, allocations: 222.1 kB / 0.7149 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of SimCode: time 9.32e-07/0.6306, allocations: 0 / 0.7149 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.04882/0.6794, allocations: 37.81 MB / 0.7518 GB, free: 91.34 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -s ida -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.314349657041021]