Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000845/0.000845, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009844/0.0009844, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8893/0.8893, allocations: 173.4 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 318.4 MB, free: 6.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.345e-05/2.536e-05, allocations: 2.281 kB / 318.4 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002683/0.002709, allocations: 2.543 MB / 321 MB, free: 3.707 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.003802, allocations: 0.7749 MB / 321.7 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.003935, allocations: 4 kB / 321.7 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.004156, allocations: 75.28 kB / 321.8 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.004379, allocations: 154.8 kB / 322 MB, free: 2.695 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.004548, allocations: 87.81 kB / 322 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.00492, allocations: 446.2 kB / 322.5 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.005058, allocations: 75.94 kB / 322.6 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.005256, allocations: 247.5 kB / 322.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.005405, allocations: 131.6 kB / 322.9 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.005444, allocations: 32 kB / 323 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.625e-05/0.005481, allocations: 36 kB / 323 MB, free: 1.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.005531, allocations: 75.73 kB / 323.1 MB, free: 1.586 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.909e-05/0.00563, allocations: 139.7 kB / 323.2 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.005973, allocations: 458.6 kB / 323.7 MB, free: 1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.005975, allocations: 0 / 323.7 MB, free: 1 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.005976, allocations: 0 / 323.7 MB, free: 1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.00598, allocations: 0 / 323.7 MB, free: 1 MB / 282.7 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.0007467/0.006727, allocations: 0.6111 MB / 324.3 MB, free: 364 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.006769, allocations: 12.92 kB / 324.3 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.006844, allocations: 71.16 kB / 324.3 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.006904, allocations: 52.66 kB / 324.4 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.007202, allocations: 249.8 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.259e-05/0.007284, allocations: 102.2 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.007315, allocations: 28.33 kB / 324.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004943/0.00781, allocations: 0.6823 MB / 325.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.007821, allocations: 192 / 325.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.007843, allocations: 15.94 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.007849, allocations: 4 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.008113, allocations: 205.8 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009045/0.009018, allocations: 0.7202 MB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.009479, allocations: 259.7 kB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.009608, allocations: 112.8 kB / 326.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.009631, allocations: 4 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.009654, allocations: 38.56 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.183e-06/0.009656, allocations: 0 / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.000707/0.01036, allocations: 398.2 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.117e-05/0.01045, allocations: 324.4 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.01064, allocations: 276.2 kB / 327.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.01067, allocations: 37.7 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.01075, allocations: 176.7 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.01081, allocations: 115 kB / 328.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.82e-05/0.01087, allocations: 57.7 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.249e-05/0.01096, allocations: 350.7 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.0111, allocations: 121.6 kB / 328.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.01135, allocations: 488.2 kB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.01162, allocations: 271.5 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.01162, allocations: 0 / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003888/0.01201, allocations: 391.5 kB / 329.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.01204, allocations: 37.69 kB / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01204, allocations: 0 / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001131/0.01216, allocations: 40.94 kB / 329.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/0.01263, allocations: 159.8 kB / 330 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.01461, allocations: 3.006 MB / 333 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.01474, allocations: 31.88 kB / 333 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.01476, allocations: 19.97 kB / 333 MB, free: 6.836 MB / 298.7 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.0001132/0.01488, allocations: 161.7 kB / 333.2 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.01491, allocations: 31.81 kB / 333.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.01495, allocations: 39.08 kB / 333.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.01496, allocations: 4 kB / 333.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.01496, allocations: 0 / 333.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004028/0.01536, allocations: 0.6462 MB / 333.9 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.01561, allocations: 312.4 kB / 334.2 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.01562, allocations: 4 kB / 334.2 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/0.0162, allocations: 211.7 kB / 334.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.646e-05/0.01625, allocations: 24.84 kB / 334.4 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.01626, allocations: 4 kB / 334.4 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.0179, allocations: 2.838 MB / 337.3 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.0179, allocations: 3.984 kB / 337.3 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.01842, allocations: 0.5052 MB / 337.8 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.12e-05/0.01851, allocations: 63.7 kB / 337.9 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.01854, allocations: 8 kB / 337.9 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.01867, allocations: 15.98 kB / 337.9 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.01873, allocations: 28.02 kB / 337.9 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.01874, allocations: 16 kB / 337.9 MB, free: 1.527 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001306/0.01887, allocations: 203 kB / 338.1 MB, free: 1.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01887, allocations: 0 / 338.1 MB, free: 1.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002709/0.01914, allocations: 111.9 kB / 338.2 MB, free: 1.223 MB / 298.7 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.0006999/0.01984, allocations: 1.057 MB / 339.3 MB, free: 136 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008363/0.02068, allocations: 0.5426 MB / 339.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.02068, allocations: 8 kB / 339.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006711/0.02135, allocations: 390.8 kB / 340.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.02171, allocations: 96.89 kB / 340.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.02475, allocations: 3.418 MB / 343.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.02486, allocations: 173.8 kB / 343.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.02496, allocations: 38.95 kB / 343.9 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.02507, allocations: 104.5 kB / 344 MB, free: 11.18 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02507, allocations: 0 / 344 MB, free: 11.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.04889, allocations: 10.98 MB / 355 MB, free: 452 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.735/7.784, allocations: 3.984 kB / 355 MB, free: 448 kB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.478330136276782]