Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001757/0.001757, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002086/0.002086, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.41/1.41, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09723, allocations: 53.34 MB / 426.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00394/0.1012, allocations: 2.768 MB / 429.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1025, allocations: 0.8607 MB / 429.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1026, allocations: 11.94 kB / 429.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1029, allocations: 75.41 kB / 430 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.1031, allocations: 130.9 kB / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.1033, allocations: 91.88 kB / 430.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.1038, allocations: 442.3 kB / 430.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.104, allocations: 59.39 kB / 430.7 MB, free: 456 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.1041, allocations: 163.4 kB / 430.9 MB, free: 292 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.1044, allocations: 179.2 kB / 431.1 MB, free: 112 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.573e-05/0.1044, allocations: 36 kB / 431.1 MB, free: 76 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.549e-05/0.1045, allocations: 39.94 kB / 431.1 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1758/0.2803, allocations: 76 kB / 431.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002561/0.2805, allocations: 185.7 kB / 431.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005172/0.2811, allocations: 448.3 kB / 431.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2811, allocations: 2.875 kB / 431.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2811, allocations: 0 / 431.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.2811, allocations: 1.062 kB / 431.8 MB, free: 7.926 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000963/0.282, allocations: 0.6857 MB / 432.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2821, allocations: 9.594 kB / 432.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.508e-05/0.2822, allocations: 70.17 kB / 432.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.703e-05/0.2822, allocations: 48 kB / 432.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.2826, allocations: 306.2 kB / 432.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.554e-05/0.2827, allocations: 46.66 kB / 433 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.2827, allocations: 24.75 kB / 433 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.2832, allocations: 340.9 kB / 433.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2832, allocations: 4.844 kB / 433.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.2832, allocations: 9.688 kB / 433.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2832, allocations: 5.562 kB / 433.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000375/0.2836, allocations: 217.3 kB / 433.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2848, allocations: 0.8229 MB / 434.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.2853, allocations: 250.4 kB / 434.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.2855, allocations: 107.8 kB / 434.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.2855, allocations: 11.22 kB / 434.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.2855, allocations: 40.28 kB / 434.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.292e-06/0.2855, allocations: 0 / 434.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009546/0.2865, allocations: 484 kB / 435.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.2866, allocations: 317.7 kB / 435.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.2868, allocations: 277.3 kB / 435.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.2868, allocations: 34.33 kB / 435.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.909e-05/0.2869, allocations: 182.9 kB / 436.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.287, allocations: 108 kB / 436.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.2871, allocations: 69.98 kB / 436.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.2871, allocations: 344.1 kB / 436.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.2874, allocations: 92.55 kB / 436.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.2876, allocations: 214.6 kB / 436.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.288, allocations: 257.7 kB / 437.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.288, allocations: 0.6562 kB / 437.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005846/0.2886, allocations: 366.8 kB / 437.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.2886, allocations: 36.72 kB / 437.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2887, allocations: 0.75 kB / 437.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/0.2888, allocations: 44.98 kB / 437.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009962/0.2898, allocations: 156.6 kB / 437.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002897/0.2927, allocations: 3.232 MB / 440.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.293, allocations: 34.03 kB / 441 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.293, allocations: 11.09 kB / 441 MB, free: 2.129 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.2931, allocations: 154.5 kB / 441.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.2932, allocations: 33.5 kB / 441.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.779e-05/0.2933, allocations: 38.14 kB / 441.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2933, allocations: 5.688 kB / 441.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.2933, allocations: 4.922 kB / 441.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005312/0.2938, allocations: 0.65 MB / 441.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.2942, allocations: 386.6 kB / 442.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2942, allocations: 1.125 kB / 442.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.2955, allocations: 212 kB / 442.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.303e-05/0.2955, allocations: 24.36 kB / 442.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.2956, allocations: 6.5 kB / 442.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.2986, allocations: 3.052 MB / 445.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2986, allocations: 3.938 kB / 445.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008582/0.2995, allocations: 0.5076 MB / 446.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.2996, allocations: 140.5 kB / 446.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/0.2997, allocations: 8 kB / 446.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.2999, allocations: 16.72 kB / 446.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.388e-05/0.3, allocations: 26.16 kB / 446.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.3, allocations: 6.484 kB / 446.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.3002, allocations: 204.7 kB / 446.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3002, allocations: 0 / 446.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.3007, allocations: 101.7 kB / 446.5 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001244/0.3019, allocations: 1.067 MB / 447.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3034, allocations: 0.5231 MB / 448.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3034, allocations: 5.125 kB / 448.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.3048, allocations: 391.6 kB / 448.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.3054, allocations: 88.92 kB / 448.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004888/0.3102, allocations: 3.408 MB / 452 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.3107, allocations: 0.7813 MB / 452.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.3108, allocations: 38.84 kB / 452.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.311, allocations: 109.2 kB / 452.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.311, allocations: 4 kB / 452.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.3502, allocations: 9.693 MB / 462.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12, allocations: 1.25 kB / 462.6 MB, free: 6.48 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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: 14.445743885124102]