Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009272/0.0009272, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008223/0.0008223, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.858/0.858, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.498e-06/1.064e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002346/0.002356, allocations: 2.576 MB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008125/0.003169, allocations: 0.8062 MB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.319e-05/0.003262, allocations: 7.938 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.003462, allocations: 75.36 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.003654, allocations: 146.8 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.00404, allocations: 87.81 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.004365, allocations: 450.1 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.004484, allocations: 71.94 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.004649, allocations: 239.5 kB / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.004788, allocations: 135.6 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.004824, allocations: 32 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.414e-05/0.004858, allocations: 40 kB / 329.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.571e-05/0.004904, allocations: 75.73 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.265e-05/0.004997, allocations: 139.7 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.005298, allocations: 458.6 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.0053, allocations: 0 / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.005301, allocations: 0 / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.005305, allocations: 0 / 329.8 MB, free: 10.58 MB / 298.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.0006694/0.005975, allocations: 0.6118 MB / 330.4 MB, free: 9.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.006009, allocations: 15.98 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.809e-05/0.006077, allocations: 63.14 kB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.006129, allocations: 48.7 kB / 330.5 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.006393, allocations: 257.6 kB / 330.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-05/0.006468, allocations: 98.17 kB / 330.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.0065, allocations: 24.38 kB / 330.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.006914, allocations: 0.6824 MB / 331.6 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.006925, allocations: 192 / 331.6 MB, free: 8.574 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.006947, allocations: 15.94 kB / 331.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.006953, allocations: 4 kB / 331.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.007208, allocations: 201.9 kB / 331.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008381/0.008046, allocations: 0.7202 MB / 332.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.008377, allocations: 255 kB / 332.8 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.008501, allocations: 104.8 kB / 332.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.008523, allocations: 4 kB / 332.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.008548, allocations: 38.56 kB / 332.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.184e-06/0.00855, allocations: 8.031 kB / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006164/0.009166, allocations: 406.9 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.81e-05/0.009254, allocations: 316.4 kB / 333.6 MB, free: 6.379 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.009434, allocations: 284.2 kB / 333.9 MB, free: 6.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.00946, allocations: 33.7 kB / 333.9 MB, free: 6.051 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.053e-05/0.00954, allocations: 176.8 kB / 334.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.583e-05/0.009596, allocations: 119 kB / 334.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.745e-05/0.009664, allocations: 65.45 kB / 334.3 MB, free: 5.688 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.009746, allocations: 346.7 kB / 334.6 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.009875, allocations: 117.7 kB / 334.7 MB, free: 5.219 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000501/0.01038, allocations: 0.4915 MB / 335.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.01065, allocations: 267.8 kB / 335.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.01065, allocations: 8 kB / 335.5 MB, free: 4.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003718/0.01102, allocations: 383.5 kB / 335.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.01105, allocations: 33.7 kB / 335.9 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.01105, allocations: 0 / 335.9 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001086/0.01116, allocations: 48.72 kB / 336 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.01161, allocations: 155.9 kB / 336.1 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/0.01358, allocations: 3.006 MB / 339.1 MB, free: 468 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.01371, allocations: 35.86 kB / 339.2 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.01373, allocations: 15.94 kB / 339.2 MB, free: 416 kB / 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.0001106/0.01384, allocations: 153.8 kB / 339.3 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.01387, allocations: 39.77 kB / 339.4 MB, free: 212 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.01392, allocations: 35.08 kB / 339.4 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.01392, allocations: 4 kB / 339.4 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.01392, allocations: 96 / 339.4 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004161/0.01433, allocations: 0.6617 MB / 340.1 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.01458, allocations: 312.4 kB / 340.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01459, allocations: 0 / 340.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.01516, allocations: 211.7 kB / 340.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-05/0.01522, allocations: 24.84 kB / 340.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.01524, allocations: 8 kB / 340.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.01713, allocations: 2.807 MB / 343.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.01713, allocations: 8.125 kB / 343.4 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004958/0.01763, allocations: 0.5078 MB / 343.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.27e-05/0.01771, allocations: 59.75 kB / 344 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.01774, allocations: 12 kB / 344 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.01786, allocations: 15.98 kB / 344 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.01792, allocations: 23.95 kB / 344 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.01794, allocations: 12 kB / 344 MB, free: 11.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.01807, allocations: 203 kB / 344.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01807, allocations: 96 / 344.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000267/0.01833, allocations: 119.8 kB / 344.4 MB, free: 10.8 MB / 314.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.0007172/0.01905, allocations: 1.062 MB / 345.4 MB, free: 9.707 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000831/0.01988, allocations: 0.5504 MB / 346 MB, free: 9.125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.01989, allocations: 3.938 kB / 346 MB, free: 9.121 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006316/0.02052, allocations: 390.3 kB / 346.4 MB, free: 8.727 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.02084, allocations: 94.58 kB / 346.5 MB, free: 8.641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.02415, allocations: 3.423 MB / 349.9 MB, free: 5.078 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.02425, allocations: 169.8 kB / 350 MB, free: 4.891 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.89e-05/0.02435, allocations: 38.95 kB / 350.1 MB, free: 4.852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.02446, allocations: 104.5 kB / 350.2 MB, free: 4.75 MB / 314.7 MB Notification: Performance of SimCode: time 6.42e-07/0.02446, allocations: 3.938 kB / 350.2 MB, free: 4.746 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.04715, allocations: 10.98 MB / 361.2 MB, free: 10.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/7.984, allocations: 11.92 kB / 361.2 MB, free: 9.996 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.667862140573561]