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.00136/0.00136, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001778/0.001778, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 62.42 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1007, allocations: 50.53 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1847/0.2854, allocations: 16.74 MB / 374.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009709/0.2951, allocations: 7.072 MB / 381.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.2966, allocations: 32.16 kB / 381.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.2978, allocations: 297 kB / 381.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003486/0.3013, allocations: 1.013 MB / 382.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005572/0.3069, allocations: 1.636 MB / 384.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003696/0.3106, allocations: 2.157 MB / 386.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.3119, allocations: 0.6058 MB / 387.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001996/0.3139, allocations: 0.806 MB / 388 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.3157, allocations: 0.8333 MB / 388.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.3161, allocations: 80.09 kB / 388.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003515/0.3196, allocations: 1.246 MB / 390.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006924/0.3203, allocations: 308.5 kB / 390.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000884/0.3212, allocations: 464.4 kB / 390.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002785/0.324, allocations: 1.334 MB / 392.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3241, allocations: 4 kB / 392.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3241, allocations: 0 / 392.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.699e-05/0.3241, allocations: 1.156 kB / 392.2 MB, free: 4.777 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.003348/0.3275, allocations: 1.26 MB / 393.5 MB, free: 3.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3275, allocations: 13.61 kB / 393.5 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004246/0.3279, allocations: 98.5 kB / 393.6 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009856/0.3289, allocations: 0.5972 MB / 394.2 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.3291, allocations: 106.9 kB / 394.3 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.3292, allocations: 55.58 kB / 394.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.3308, allocations: 0.8915 MB / 395.3 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.3308, allocations: 9.344 kB / 395.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.3309, allocations: 25.91 kB / 395.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.673e-05/0.331, allocations: 52.72 kB / 395.3 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.3323, allocations: 0.8412 MB / 396.2 MB, free: 2.152 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.0056/0.3379, allocations: 3.463 MB / 399.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.339, allocations: 0.665 MB / 400.3 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005243/0.3396, allocations: 364.8 kB / 400.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00307/0.3426, allocations: 2.037 MB / 402.7 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.3427, allocations: 49.88 kB / 402.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.074e-06/0.3427, allocations: 0 / 402.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007101/0.3498, allocations: 2.821 MB / 405.6 MB, free: 11.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.3499, allocations: 88.83 kB / 405.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008598/0.3508, allocations: 0.6766 MB / 406.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-05/0.3509, allocations: 41.7 kB / 406.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.3511, allocations: 336.4 kB / 406.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.3513, allocations: 228.8 kB / 406.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.3516, allocations: 150.6 kB / 407.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3518, allocations: 390.7 kB / 407.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006153/0.3524, allocations: 368.6 kB / 407.8 MB, free: 9.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006975/0.3531, allocations: 0.5191 MB / 408.3 MB, free: 8.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.3544, allocations: 0.8677 MB / 409.2 MB, free: 7.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.3544, allocations: 3.938 kB / 409.2 MB, free: 7.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00203/0.3564, allocations: 1.161 MB / 410.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3565, allocations: 11.12 kB / 410.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3565, allocations: 4 kB / 410.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.3578, allocations: 452 kB / 410.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007004/0.3585, allocations: 159.7 kB / 411 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.3598, allocations: 1.032 MB / 412 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008441/0.3606, allocations: 35.92 kB / 412 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.202e-05/0.3607, allocations: 31.98 kB / 412.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008594/0.3616, allocations: 0.5331 MB / 412.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006747/0.3623, allocations: 0.5174 MB / 413.1 MB, free: 3.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001177/0.3635, allocations: 0.8451 MB / 414 MB, free: 2.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.198e-06/0.3635, allocations: 0 / 414 MB, free: 2.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001958/0.3655, allocations: 1.098 MB / 415.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3655, allocations: 11.98 kB / 415.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.3655, allocations: 4 kB / 415.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007224/0.3662, allocations: 317.1 kB / 415.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006609/0.3669, allocations: 163.8 kB / 415.6 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009922/0.3679, allocations: 0.9151 MB / 416.5 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008438/0.3688, allocations: 40.02 kB / 416.5 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.3689, allocations: 29.62 kB / 416.5 MB, free: 220 kB / 318.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.0003379/0.3692, allocations: 237.2 kB / 416.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.3695, allocations: 79.06 kB / 416.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.3716, allocations: 1.089 MB / 417.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.3717, allocations: 11.98 kB / 418 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3717, allocations: 0 / 418 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3717, allocations: 0 / 418 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/0.3751, allocations: 2.001 MB / 420 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3752, allocations: 0.8125 kB / 420 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.3758, allocations: 123.9 kB / 420.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.377, allocations: 444.5 kB / 420.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.458e-05/0.3771, allocations: 20 kB / 420.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.3783, allocations: 1.025 MB / 421.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3783, allocations: 7.922 kB / 421.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002771/0.3811, allocations: 1.604 MB / 423.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006484/0.3818, allocations: 240.1 kB / 423.4 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.3821, allocations: 12 kB / 423.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/0.3829, allocations: 43.89 kB / 423.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3831, allocations: 64.52 kB / 423.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.906e-05/0.3832, allocations: 27.98 kB / 423.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007189/0.384, allocations: 483 kB / 424 MB, free: 8.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.384, allocations: 0 / 424 MB, free: 8.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002261/0.3862, allocations: 0.5818 MB / 424.6 MB, free: 8.008 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.001544/0.3878, allocations: 494.4 kB / 425.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.3916, allocations: 1.561 MB / 426.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.3916, allocations: 0.6875 kB / 426.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.3928, allocations: 475.5 kB / 427.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.395, allocations: 384.9 kB / 427.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.3992, allocations: 2.044 MB / 429.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006919/0.3999, allocations: 0.9948 MB / 430.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.4003, allocations: 83.41 kB / 430.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4003, allocations: 0 / 430.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of Templates: time 0.03066/0.431, allocations: 19.2 MB / 449.8 MB, free: 14.81 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches