Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001293/0.001293, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001503/0.001503, allocations: 214.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001802/0.001802, allocations: 47.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2577, allocations: 49.16 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003275/0.261, allocations: 2.556 MB / 398.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2621, allocations: 0.8237 MB / 399.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.2622, allocations: 6.812 kB / 399.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.2625, allocations: 71.77 kB / 399.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.2627, allocations: 137 kB / 399.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.2629, allocations: 94.53 kB / 400 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004637/0.2634, allocations: 433.4 kB / 400.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.2635, allocations: 64.19 kB / 400.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.2637, allocations: 166.4 kB / 400.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2639, allocations: 161.2 kB / 400.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.814e-05/0.264, allocations: 33.69 kB / 400.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.118e-05/0.2641, allocations: 35.78 kB / 400.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.461e-05/0.2641, allocations: 71.41 kB / 401 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.2643, allocations: 167.5 kB / 401.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.2647, allocations: 447.2 kB / 401.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2647, allocations: 3.938 kB / 401.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2647, allocations: 1.531 kB / 401.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2648, allocations: 0 / 401.6 MB, free: 5.68 MB / 318.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.000965/0.2657, allocations: 0.6261 MB / 402.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2658, allocations: 13.55 kB / 402.2 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.802e-05/0.2658, allocations: 56.38 kB / 402.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.691e-05/0.2659, allocations: 48.44 kB / 402.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.2663, allocations: 247.8 kB / 402.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.2664, allocations: 106.6 kB / 402.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.2664, allocations: 24.02 kB / 402.7 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.267, allocations: 0.6797 MB / 403.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.267, allocations: 0 / 403.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.267, allocations: 16.34 kB / 403.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.267, allocations: 6.156 kB / 403.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004321/0.2674, allocations: 203.1 kB / 403.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.2687, allocations: 0.721 MB / 404.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000509/0.2692, allocations: 251.8 kB / 404.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.2694, allocations: 104.3 kB / 404.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.2694, allocations: 4.188 kB / 404.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.2694, allocations: 43.14 kB / 404.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.2694, allocations: 0 / 404.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009681/0.2704, allocations: 413.7 kB / 405.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.312e-05/0.2705, allocations: 313.7 kB / 405.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.2708, allocations: 290.7 kB / 405.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.2708, allocations: 33.83 kB / 405.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.2709, allocations: 172.6 kB / 405.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.2709, allocations: 115.8 kB / 406 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.2711, allocations: 67.48 kB / 406.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.2711, allocations: 343.3 kB / 406.4 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.2714, allocations: 123 kB / 406.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003067/0.2717, allocations: 499.9 kB / 407 MB, free: 1.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.2721, allocations: 260.5 kB / 407.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2721, allocations: 1.375 kB / 407.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005597/0.2726, allocations: 390.7 kB / 407.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.2727, allocations: 31.39 kB / 407.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2727, allocations: 1.188 kB / 407.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.2728, allocations: 45.44 kB / 407.7 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009529/0.2738, allocations: 160.1 kB / 407.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.2773, allocations: 3.012 MB / 410.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.2776, allocations: 36.06 kB / 410.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.2776, allocations: 12.59 kB / 410.9 MB, free: 14.27 MB / 334.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.0002024/0.2778, allocations: 153.7 kB / 411.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.101e-05/0.2779, allocations: 33.62 kB / 411.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.033e-05/0.278, allocations: 38.91 kB / 411.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.278, allocations: 6.438 kB / 411.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.278, allocations: 5.844 kB / 411.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008079/0.2788, allocations: 0.6553 MB / 411.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.2793, allocations: 314.5 kB / 412.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2793, allocations: 0 / 412.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.2805, allocations: 206.2 kB / 412.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.864e-05/0.2805, allocations: 28.05 kB / 412.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.2806, allocations: 5.797 kB / 412.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.2839, allocations: 2.827 MB / 415.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2839, allocations: 0 / 415.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008535/0.2847, allocations: 0.5082 MB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.2849, allocations: 67.45 kB / 415.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.2849, allocations: 8.234 kB / 415.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.2852, allocations: 24.72 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.2853, allocations: 23.2 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.2853, allocations: 11.02 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.2855, allocations: 201.1 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2855, allocations: 1.344 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.2859, allocations: 108.9 kB / 416.1 MB, free: 10.03 MB / 334.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.001278/0.2872, allocations: 1.058 MB / 417.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.2889, allocations: 0.5499 MB / 417.7 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2889, allocations: 1.469 kB / 417.7 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.2903, allocations: 396.6 kB / 418.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.2909, allocations: 95.84 kB / 418.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005191/0.2961, allocations: 3.504 MB / 421.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.2962, allocations: 174.7 kB / 421.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.2964, allocations: 41.97 kB / 421.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.2966, allocations: 102.3 kB / 422 MB, free: 5.891 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2966, allocations: 1.062 kB / 422 MB, free: 5.891 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04505/0.3416, allocations: 10.87 MB / 432.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.63, allocations: 11.86 kB / 432.9 MB, free: 13.05 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.100068747065961]