Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.0009329/0.0009329, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.0009798/0.0009798, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.909/0.909, allocations: 177.1 MB / 203.8 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.638/0.638, allocations: 118.6 MB / 378.9 MB, free: 1.359 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.796e-06/2.796e-06, allocations: 3.984 kB / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.154e-05/1.434e-05, allocations: 6.25 kB / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.2616/0.2616, allocations: 132.5 MB / 0.5501 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002729/0.2643, allocations: 2.92 MB / 0.5529 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.2646, allocations: 63.38 kB / 0.553 GB, free: 3.887 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004406/0.265, allocations: 229.8 kB / 0.5532 GB, free: 3.66 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001038/0.2661, allocations: 0.702 MB / 0.5539 GB, free: 2.953 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006752/0.2668, allocations: 0.5491 MB / 0.5544 GB, free: 2.402 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0009605/0.2677, allocations: 1.58 MB / 0.556 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/0.268, allocations: 215 kB / 0.5562 GB, free: 0.5938 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007359/0.2687, allocations: 0.8543 MB / 0.557 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.2692, allocations: 0.5727 MB / 0.5576 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.574e-05/0.2693, allocations: 80 kB / 0.5577 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004323/0.2697, allocations: 419.3 kB / 0.5581 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.2698, allocations: 207 kB / 0.5583 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002425/0.2701, allocations: 368.1 kB / 0.5586 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0008695/0.271, allocations: 1.14 MB / 0.5597 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.271, allocations: 0 / 0.5597 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.052e-06/0.271, allocations: 0 / 0.5597 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.323e-06/0.271, allocations: 0 / 0.5597 GB, free: 12.97 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001475/0.2724, allocations: 1.412 MB / 0.5611 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.715e-05/0.2725, allocations: 8.031 kB / 0.5611 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.2726, allocations: 160.6 kB / 0.5613 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007894/0.2734, allocations: 0.7538 MB / 0.562 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.2735, allocations: 58.38 kB / 0.5621 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.2735, allocations: 72.36 kB / 0.5621 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.274, allocations: 0.5144 MB / 0.5626 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.274, allocations: 4.375 kB / 0.5626 GB, free: 9.902 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.274, allocations: 31.94 kB / 0.5627 GB, free: 9.871 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.274, allocations: 16 kB / 0.5627 GB, free: 9.855 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002628/0.2743, allocations: 236.6 kB / 0.5629 GB, free: 9.625 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.2758, allocations: 1.518 MB / 0.5644 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.2763, allocations: 433.5 kB / 0.5648 GB, free: 7.641 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.2764, allocations: 115.1 kB / 0.5649 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007333/0.2771, allocations: 0.6086 MB / 0.5655 GB, free: 6.906 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.2772, allocations: 39.06 kB / 0.5655 GB, free: 6.859 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 1.332e-06/0.2772, allocations: 4 kB / 0.5655 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.001134/0.2783, allocations: 0.8408 MB / 0.5664 GB, free: 5.977 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.2783, allocations: 59.91 kB / 0.5664 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.2787, allocations: 0.6608 MB / 0.5671 GB, free: 5.227 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.2787, allocations: 33.7 kB / 0.5671 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.2789, allocations: 370.3 kB / 0.5674 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.191e-05/0.279, allocations: 178.4 kB / 0.5676 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-05/0.2791, allocations: 98.08 kB / 0.5677 GB, free: 4.547 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002807/0.2793, allocations: 321.9 kB / 0.568 GB, free: 4.227 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.571e-05/0.2794, allocations: 52.97 kB / 0.5681 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.919e-05/0.2795, allocations: 133.1 kB / 0.5682 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.2797, allocations: 229.5 kB / 0.5684 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2797, allocations: 4 kB / 0.5684 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000399/0.2801, allocations: 359 kB / 0.5688 GB, free: 3.402 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.2801, allocations: 11.97 kB / 0.5688 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2801, allocations: 4 kB / 0.5688 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002726/0.2804, allocations: 108.7 kB / 0.5689 GB, free: 3.277 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.2806, allocations: 87.83 kB / 0.569 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009095/0.2815, allocations: 1.492 MB / 0.5704 GB, free: 1.617 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.2816, allocations: 13.75 kB / 0.5704 GB, free: 1.605 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.2816, allocations: 23.92 kB / 0.5705 GB, free: 1.582 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.2818, allocations: 144.5 kB / 0.5706 GB, free: 1.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2819, allocations: 79.86 kB / 0.5707 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005638/0.2824, allocations: 0.5375 MB / 0.5712 GB, free: 0.793 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.2824, allocations: 4 kB / 0.5712 GB, free: 0.7891 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2824, allocations: 4 kB / 0.5712 GB, free: 0.7852 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2824, allocations: 3.938 kB / 0.5712 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008587/0.2833, allocations: 0.8173 MB / 0.572 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2833, allocations: 0 / 0.572 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.2834, allocations: 75.84 kB / 0.5721 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.2837, allocations: 118.7 kB / 0.5722 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2837, allocations: 15.98 kB / 0.5722 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008423/0.2846, allocations: 1.496 MB / 0.5737 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2846, allocations: 0 / 0.5737 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005143/0.2851, allocations: 0.5515 MB / 0.5742 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.2852, allocations: 99.28 kB / 0.5743 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.2852, allocations: 12 kB / 0.5743 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.2854, allocations: 20.86 kB / 0.5743 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.083e-05/0.2855, allocations: 44.3 kB / 0.5744 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.2856, allocations: 15.98 kB / 0.5744 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000248/0.2858, allocations: 353.9 kB / 0.5747 GB, free: 13 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9e-08/0.2858, allocations: 3.938 kB / 0.5747 GB, free: 13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006126/0.2864, allocations: 267.6 kB / 0.575 GB, free: 12.74 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002489/0.2867, allocations: 223.9 kB / 0.5752 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004285/0.2871, allocations: 406.1 kB / 0.5756 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.2871, allocations: 8 kB / 0.5756 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.2874, allocations: 319.8 kB / 0.5759 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.2881, allocations: 348.5 kB / 0.5762 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.2898, allocations: 1.609 MB / 0.5778 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.29, allocations: 183.5 kB / 0.578 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002405/0.2902, allocations: 135.5 kB / 0.5781 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000382/0.2906, allocations: 273.1 kB / 0.5784 GB, free: 9.18 MB / 0.5261 GB Notification: Performance of SimCode: time 4.71e-07/0.2906, allocations: 4 kB / 0.5784 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of Templates: time 0.01728/0.3079, allocations: 15.73 MB / 0.5937 GB, free: 9.848 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.524440318811685]