Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001347, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.3 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 64.23 kB / 306.3 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1077, allocations: 50.55 MB / 356.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1979/0.3055, allocations: 16.76 MB / 373.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009085/0.3147, allocations: 7.28 MB / 380.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007635/0.3155, allocations: 36.19 kB / 380.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008234/0.3163, allocations: 289.8 kB / 381.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002311/0.3186, allocations: 1.022 MB / 382.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00415/0.3228, allocations: 1.502 MB / 383.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004589/0.3274, allocations: 3.194 MB / 386.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007061/0.3281, allocations: 0.5383 MB / 387.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.3293, allocations: 0.6996 MB / 388.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.3303, allocations: 0.8021 MB / 389 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3305, allocations: 44.25 kB / 389 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.3331, allocations: 1.21 MB / 390.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002959/0.3334, allocations: 272.8 kB / 390.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004558/0.3338, allocations: 432.6 kB / 390.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002351/0.3362, allocations: 1.829 MB / 392.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3362, allocations: 3.984 kB / 392.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3362, allocations: 0 / 392.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3362, allocations: 1.469 kB / 392.7 MB, free: 4.051 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002505/0.3387, allocations: 1.259 MB / 394 MB, free: 3.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3388, allocations: 10.22 kB / 394 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/0.3391, allocations: 98.86 kB / 394.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007797/0.3399, allocations: 0.6012 MB / 394.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/0.34, allocations: 103 kB / 394.8 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3401, allocations: 59.72 kB / 394.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3415, allocations: 0.8951 MB / 395.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3415, allocations: 1.406 kB / 395.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.732e-05/0.3416, allocations: 22.11 kB / 395.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.887e-05/0.3417, allocations: 56.05 kB / 395.8 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.3429, allocations: 0.842 MB / 396.7 MB, free: 1.426 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/0.3483, allocations: 3.462 MB / 400.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3494, allocations: 0.6657 MB / 400.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005563/0.3499, allocations: 367.9 kB / 401.2 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003088/0.353, allocations: 2.028 MB / 403.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.3531, allocations: 41.88 kB / 403.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.034e-06/0.3531, allocations: 2.719 kB / 403.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007342/0.3604, allocations: 2.834 MB / 406.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.053e-05/0.3605, allocations: 89.66 kB / 406.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009491/0.3615, allocations: 0.6721 MB / 406.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.821e-05/0.3616, allocations: 45.7 kB / 406.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.3619, allocations: 336.4 kB / 407.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.3621, allocations: 224.8 kB / 407.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/0.3624, allocations: 150.5 kB / 407.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.3626, allocations: 390.7 kB / 408 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.3633, allocations: 372.6 kB / 408.3 MB, free: 7.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000848/0.3641, allocations: 0.5152 MB / 408.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.3656, allocations: 0.8755 MB / 409.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3656, allocations: 0 / 409.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002189/0.3678, allocations: 1.157 MB / 410.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3678, allocations: 8 kB / 410.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3678, allocations: 4 kB / 410.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.3692, allocations: 448.5 kB / 411.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007036/0.37, allocations: 167.7 kB / 411.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.3714, allocations: 1.021 MB / 412.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000678/0.3721, allocations: 43.86 kB / 412.5 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.003e-05/0.3721, allocations: 31.98 kB / 412.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009446/0.3731, allocations: 0.5331 MB / 413.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000786/0.3739, allocations: 0.5122 MB / 413.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001396/0.3753, allocations: 0.8451 MB / 414.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.3753, allocations: 0 / 414.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002094/0.3774, allocations: 1.1 MB / 415.6 MB, free: 380 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3774, allocations: 8.625 kB / 415.6 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3774, allocations: 4 kB / 415.6 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000756/0.3782, allocations: 313.2 kB / 415.9 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006899/0.3789, allocations: 171.7 kB / 416.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.38, allocations: 0.9112 MB / 417 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006663/0.3807, allocations: 36.03 kB / 417 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/0.3808, allocations: 35.92 kB / 417 MB, free: 14.88 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002938/0.3811, allocations: 237.1 kB / 417.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.3813, allocations: 79.06 kB / 417.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/0.3835, allocations: 1.097 MB / 418.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3835, allocations: 8 kB / 418.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3835, allocations: 0 / 418.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3835, allocations: 7.922 kB / 418.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00338/0.3869, allocations: 2.002 MB / 420.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3869, allocations: 0 / 420.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005956/0.3875, allocations: 119.9 kB / 420.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.3888, allocations: 452.5 kB / 421 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3889, allocations: 15.98 kB / 421 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.3903, allocations: 1.032 MB / 422.1 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3903, allocations: 3.938 kB / 422.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.393, allocations: 1.595 MB / 423.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.3935, allocations: 248 kB / 423.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.3936, allocations: 12 kB / 423.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006153/0.3942, allocations: 39.97 kB / 424 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.3944, allocations: 60.44 kB / 424 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.659e-05/0.3945, allocations: 31.98 kB / 424 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006455/0.3951, allocations: 483 kB / 424.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3951, allocations: 0 / 424.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00168/0.3968, allocations: 0.5779 MB / 425.1 MB, free: 6.668 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.3979, allocations: 486.6 kB / 425.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.4011, allocations: 1.403 MB / 427 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4011, allocations: 1.75 kB / 427 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.4021, allocations: 459.8 kB / 427.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.4046, allocations: 371.2 kB / 427.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005301/0.4099, allocations: 1.998 MB / 429.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009393/0.4108, allocations: 1.003 MB / 430.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.4126, allocations: 302.6 kB / 431.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.4129, allocations: 71.42 kB / 431.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4129, allocations: 3.938 kB / 431.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of Templates: time 0.0579/0.4708, allocations: 21.99 MB / 453.1 MB, free: 10.7 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches