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.001496/0.001496, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001856/0.001856, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.541/1.541, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.751e-05, allocations: 2.312 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004273/0.004301, allocations: 2.576 MB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.005886, allocations: 0.8099 MB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.006023, allocations: 7.938 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.006316, allocations: 67.42 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003386/0.006655, allocations: 150.9 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.006902, allocations: 87.81 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005822/0.007485, allocations: 454 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.007649, allocations: 71.94 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.007974, allocations: 251.5 kB / 276.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.008211, allocations: 131.7 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.353e-05/0.008274, allocations: 32 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.024e-05/0.008345, allocations: 36 kB / 276.8 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.856e-05/0.008433, allocations: 79.67 kB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002479/0.008681, allocations: 143.7 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005586/0.00924, allocations: 450.6 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.009246, allocations: 3.984 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.009247, allocations: 0 / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.009253, allocations: 0 / 277.5 MB, free: 12.51 MB / 266.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.001197/0.01045, allocations: 0.6079 MB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.01049, allocations: 15.98 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.01063, allocations: 64.64 kB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.01109, allocations: 245.7 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.01123, allocations: 106.2 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.664e-05/0.0113, allocations: 28.38 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008394/0.01214, allocations: 0.6629 MB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.01215, allocations: 192 / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.01219, allocations: 16.12 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.0122, allocations: 4 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.01267, allocations: 201.9 kB / 279.4 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.01413, allocations: 0.6623 MB / 280.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006318/0.01476, allocations: 258.9 kB / 280.3 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.015, allocations: 104.8 kB / 280.4 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.01504, allocations: 4 kB / 280.4 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.01519, allocations: 50.44 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.613e-06/0.01519, allocations: 0 / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.001193/0.01639, allocations: 411 kB / 280.9 MB, free: 8.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002349/0.01662, allocations: 320.4 kB / 281.2 MB, free: 8.445 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.01697, allocations: 280.2 kB / 281.5 MB, free: 8.164 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.649e-05/0.01702, allocations: 37.7 kB / 281.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.01717, allocations: 168.9 kB / 281.7 MB, free: 7.953 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.01729, allocations: 111 kB / 281.8 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.01742, allocations: 69.69 kB / 281.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.01762, allocations: 338.8 kB / 282.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.01788, allocations: 117.7 kB / 282.3 MB, free: 7.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.01843, allocations: 0.4906 MB / 282.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005352/0.01897, allocations: 275.2 kB / 283.1 MB, free: 6.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01897, allocations: 0 / 283.1 MB, free: 6.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007816/0.01975, allocations: 411.4 kB / 283.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.0198, allocations: 29.7 kB / 283.5 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.0198, allocations: 4 kB / 283.5 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.01998, allocations: 44.77 kB / 283.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.02107, allocations: 155.9 kB / 283.7 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004411/0.02548, allocations: 2.972 MB / 286.7 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.02579, allocations: 35.86 kB / 286.7 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.02582, allocations: 8 kB / 286.7 MB, free: 2.543 MB / 266.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.0002252/0.02605, allocations: 153.9 kB / 286.9 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.02615, allocations: 47.77 kB / 286.9 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.02625, allocations: 43.02 kB / 286.9 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.02626, allocations: 4 kB / 286.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.02626, allocations: 0 / 286.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000993/0.02725, allocations: 0.662 MB / 287.6 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004297/0.02768, allocations: 261.1 kB / 287.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.02769, allocations: 4 kB / 287.9 MB, free: 1.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.02914, allocations: 211.7 kB / 288.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-05/0.02923, allocations: 24.86 kB / 288.1 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.02926, allocations: 7.984 kB / 288.1 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/0.03316, allocations: 2.777 MB / 290.9 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.03316, allocations: 3.938 kB / 290.9 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.03418, allocations: 0.5198 MB / 291.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.03434, allocations: 63.75 kB / 291.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.03439, allocations: 8 kB / 291.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.03467, allocations: 15.98 kB / 291.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-05/0.03477, allocations: 31.83 kB / 291.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/0.03479, allocations: 12 kB / 291.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.03504, allocations: 199.1 kB / 291.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03504, allocations: 4 kB / 291.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004974/0.03554, allocations: 107.9 kB / 291.8 MB, free: 13.03 MB / 282.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.0001695/0.03571, allocations: 103.2 kB / 291.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.03748, allocations: 0.5463 MB / 292.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.03748, allocations: 0 / 292.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.0391, allocations: 390.8 kB / 292.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.03969, allocations: 96.75 kB / 293 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.0416, allocations: 0.7588 MB / 293.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.0418, allocations: 173.8 kB / 293.9 MB, free: 10.87 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.04197, allocations: 38.95 kB / 293.9 MB, free: 10.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.525e-05/0.04206, allocations: 28.5 kB / 294 MB, free: 10.8 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.04206, allocations: 0 / 294 MB, free: 10.8 MB / 282.7 MB Notification: Performance of Templates: time 0.01405/0.05611, allocations: 6.692 MB / 300.6 MB, free: 4.27 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] 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: 4.7011037630727515]