Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.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.00176/0.00176, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002355/0.002355, allocations: 211.2 kB / 23.04 MB, free: 5.078 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.443/1.443, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.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 0.8044/0.8044, allocations: 100.3 MB / 413.5 MB, free: 4.02 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="cs",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.002441/0.002441, allocations: 81.06 kB / 0.564 GB, free: 35.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1445, allocations: 74.45 MB / 0.6367 GB, free: 7.699 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05954/0.204, allocations: 54.36 MB / 0.6898 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02664/0.2306, allocations: 21.84 MB / 0.7111 GB, free: 11.24 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002789/0.2334, allocations: 99.06 kB / 0.7112 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.236, allocations: 0.9003 MB / 0.7121 GB, free: 10.24 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005288/0.2413, allocations: 1.728 MB / 0.7138 GB, free: 8.5 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004019/0.2453, allocations: 1.37 MB / 0.7151 GB, free: 7.125 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003929/0.2493, allocations: 2.583 MB / 0.7177 GB, free: 4.527 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006407/0.2499, allocations: 318.7 kB / 0.718 GB, free: 4.184 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.2521, allocations: 1.116 MB / 0.7191 GB, free: 3.062 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.2533, allocations: 0.9562 MB / 0.72 GB, free: 2.102 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.2535, allocations: 124 kB / 0.7201 GB, free: 1.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004077/0.2576, allocations: 1.292 MB / 0.7214 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003439/0.2579, allocations: 350.3 kB / 0.7217 GB, free: 352 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009621/0.2589, allocations: 0.8972 MB / 0.7226 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005011/0.2639, allocations: 2.689 MB / 0.7252 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2639, allocations: 0 / 0.7252 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2639, allocations: 0 / 0.7252 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.588e-05/0.264, allocations: 0 / 0.7252 GB, free: 12.74 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.004239/0.2682, allocations: 2.357 MB / 0.7275 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.2682, allocations: 16.03 kB / 0.7275 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.607e-05/0.2683, allocations: 26.28 kB / 0.7275 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001863/0.2685, allocations: 177.2 kB / 0.7277 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.2688, allocations: 226.5 kB / 0.7279 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002231/0.271, allocations: 1.187 MB / 0.7291 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.886e-05/0.2711, allocations: 90.28 kB / 0.7292 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.2713, allocations: 116 kB / 0.7293 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.2733, allocations: 1.229 MB / 0.7305 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.2733, allocations: 0 / 0.7305 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.201e-05/0.2734, allocations: 52 kB / 0.7305 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.2734, allocations: 28 kB / 0.7306 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.2754, allocations: 1.172 MB / 0.7317 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006561/0.2819, allocations: 4.95 MB / 0.7365 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.2834, allocations: 0.8347 MB / 0.7374 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007051/0.2841, allocations: 430.2 kB / 0.7378 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00361/0.2877, allocations: 1.765 MB / 0.7395 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.2878, allocations: 43.56 kB / 0.7395 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=103): time 2.935e-06/0.2878, allocations: 4 kB / 0.7395 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=103): time 0.003836/0.2916, allocations: 1.489 MB / 0.741 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.2917, allocations: 64.41 kB / 0.7411 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002142/0.2938, allocations: 1.284 MB / 0.7423 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-05/0.2939, allocations: 41.7 kB / 0.7423 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007984/0.2947, allocations: 0.7739 MB / 0.7431 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000389/0.2951, allocations: 372.8 kB / 0.7435 GB, free: 9.363 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/0.2954, allocations: 170.6 kB / 0.7436 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.2956, allocations: 349.9 kB / 0.744 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/0.2962, allocations: 297.9 kB / 0.7442 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007725/0.297, allocations: 441.9 kB / 0.7447 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.2983, allocations: 0.7659 MB / 0.7454 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2983, allocations: 0 / 0.7454 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00238/0.3007, allocations: 1.155 MB / 0.7465 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3007, allocations: 4 kB / 0.7465 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3008, allocations: 8 kB / 0.7465 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006371/0.3014, allocations: 162.6 kB / 0.7467 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00071/0.3021, allocations: 195.7 kB / 0.7469 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004285/0.3064, allocations: 4.506 MB / 0.7513 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009033/0.3073, allocations: 95.31 kB / 0.7514 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.3074, allocations: 43.98 kB / 0.7514 GB, free: 0.7578 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * 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.0005658/0.308, allocations: 273.6 kB / 0.7517 GB, free: 492 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.3083, allocations: 170.9 kB / 0.7518 GB, free: 320 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2894/0.5977, allocations: 1.627 MB / 0.7534 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.5977, allocations: 10.48 kB / 0.7534 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5977, allocations: 7.219 kB / 0.7535 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/0.5977, allocations: 6.078 kB / 0.7535 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004536/0.6022, allocations: 2.587 MB / 0.756 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.6023, allocations: 3 kB / 0.756 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006102/0.6029, allocations: 165.6 kB / 0.7561 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005878/0.6034, allocations: 173.2 kB / 0.7563 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.6035, allocations: 34.41 kB / 0.7563 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/0.6067, allocations: 4.51 MB / 0.7607 GB, free: 105.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6067, allocations: 7.531 kB / 0.7608 GB, free: 105.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002823/0.6095, allocations: 1.63 MB / 0.7623 GB, free: 105 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006281/0.6101, allocations: 271.8 kB / 0.7626 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.6103, allocations: 37.28 kB / 0.7626 GB, free: 104.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/0.6109, allocations: 23.86 kB / 0.7627 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.6111, allocations: 91.94 kB / 0.7628 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-05/0.6112, allocations: 37.89 kB / 0.7628 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001408/0.6126, allocations: 0.9091 MB / 0.7637 GB, free: 104.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.1e-08/0.6126, allocations: 3.469 kB / 0.7637 GB, free: 104.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001488/0.614, allocations: 0.5988 MB / 0.7643 GB, free: 104.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.003716/0.6178, allocations: 2.798 MB / 0.767 GB, free: 103 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002305/0.6201, allocations: 1.142 MB / 0.7681 GB, free: 102.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.6201, allocations: 4.375 kB / 0.7681 GB, free: 102.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.6213, allocations: 0.7885 MB / 0.7689 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.6236, allocations: 0.525 MB / 0.7694 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.6387, allocations: 10.72 MB / 0.7799 GB, free: 96.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.6393, allocations: 1.265 MB / 0.7811 GB, free: 95.86 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009849/0.6403, allocations: 289.2 kB / 0.7814 GB, free: 95.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006682/0.641, allocations: 0.7012 MB / 0.7821 GB, free: 95.23 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/0.641, allocations: 3.938 kB / 0.7821 GB, free: 95.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08049/0.7215, allocations: 46.45 MB / 0.8274 GB, free: 51.65 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.36, allocations: 4.062 kB / 0.8274 GB, free: 51.65 MB / 0.5762 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.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: 19.182773264939897]