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.0013/0.0013, allocations: 118.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.112/2.112, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2993, allocations: 50.53 MB / 409.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01952/0.3189, allocations: 15.97 MB / 425.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.3314, allocations: 6.913 MB / 432.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.3327, allocations: 19.88 kB / 432.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.3344, allocations: 342 kB / 433.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004015/0.3385, allocations: 1.081 MB / 434.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005884/0.3444, allocations: 1.781 MB / 436 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.3486, allocations: 2.159 MB / 438.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.3501, allocations: 0.5996 MB / 438.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002276/0.3524, allocations: 0.8137 MB / 439.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001794/0.3542, allocations: 0.7941 MB / 440.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003987/0.3546, allocations: 80 kB / 440.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003399/0.3581, allocations: 1.248 MB / 441.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007802/0.3589, allocations: 319.1 kB / 442 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.3601, allocations: 461.9 kB / 442.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004722/0.3648, allocations: 1.851 MB / 444.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.3649, allocations: 4 kB / 444.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3649, allocations: 0 / 444.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.13e-05/0.3649, allocations: 0 / 444.3 MB, free: 15.22 MB / 366.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.004328/0.3693, allocations: 1.266 MB / 445.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3693, allocations: 8.031 kB / 445.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005774/0.3699, allocations: 95.91 kB / 445.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.3715, allocations: 0.6286 MB / 446.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.3716, allocations: 108.7 kB / 446.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.3718, allocations: 55.89 kB / 446.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001858/0.3737, allocations: 0.8884 MB / 447.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.3737, allocations: 11.92 kB / 447.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.848e-05/0.3738, allocations: 27.92 kB / 447.4 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.384e-05/0.3739, allocations: 53.28 kB / 447.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3755, allocations: 0.8443 MB / 448.3 MB, free: 11.1 MB / 366.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.006933/0.3825, allocations: 3.443 MB / 451.7 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.3837, allocations: 0.6618 MB / 452.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006047/0.3843, allocations: 370.3 kB / 452.8 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003643/0.388, allocations: 2.031 MB / 454.8 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.3881, allocations: 47.06 kB / 454.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 3.206e-06/0.3881, allocations: 0 / 454.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007942/0.396, allocations: 2.832 MB / 457.7 MB, free: 1.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.3962, allocations: 89.67 kB / 457.8 MB, free: 1.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.3973, allocations: 0.6798 MB / 458.4 MB, free: 464 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.182e-05/0.3974, allocations: 41.7 kB / 458.5 MB, free: 416 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.3977, allocations: 332.4 kB / 458.8 MB, free: 76 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002649/0.398, allocations: 232.8 kB / 459 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002928/0.3983, allocations: 146.6 kB / 459.2 MB, free: 15.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.3985, allocations: 386.8 kB / 459.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006832/0.3992, allocations: 372.6 kB / 459.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008231/0.4001, allocations: 0.5251 MB / 460.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.4015, allocations: 0.8599 MB / 461.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.4015, allocations: 3.938 kB / 461.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002334/0.4039, allocations: 1.161 MB / 462.5 MB, free: 12.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.4039, allocations: 11.94 kB / 462.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.404, allocations: 4 kB / 462.5 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.4054, allocations: 456.9 kB / 462.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007702/0.4062, allocations: 159.8 kB / 463.1 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.4078, allocations: 1.013 MB / 464.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009066/0.4087, allocations: 28.03 kB / 464.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.4089, allocations: 31.98 kB / 464.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001032/0.4099, allocations: 0.537 MB / 464.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008734/0.4108, allocations: 0.5193 MB / 465.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001807/0.4126, allocations: 0.8412 MB / 466 MB, free: 8.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.032e-05/0.4127, allocations: 3.938 kB / 466.1 MB, free: 8.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002673/0.4153, allocations: 1.098 MB / 467.1 MB, free: 7.406 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.4154, allocations: 10.64 kB / 467.2 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.4154, allocations: 4 kB / 467.2 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009171/0.4163, allocations: 321.2 kB / 467.5 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/0.4171, allocations: 167.8 kB / 467.6 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.4188, allocations: 0.9035 MB / 468.5 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008052/0.4196, allocations: 32.03 kB / 468.6 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.4197, allocations: 35.92 kB / 468.6 MB, free: 5.918 MB / 382.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.0004259/0.4202, allocations: 224.1 kB / 468.8 MB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.4205, allocations: 79.06 kB / 468.9 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002576/0.4231, allocations: 1.099 MB / 470 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.4231, allocations: 4 kB / 470 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.4231, allocations: 4 kB / 470 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.4231, allocations: 3.984 kB / 470 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004635/0.4278, allocations: 2.008 MB / 472 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.4278, allocations: 4 kB / 472 MB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006256/0.4285, allocations: 123.8 kB / 472.2 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.4297, allocations: 443.5 kB / 472.6 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.448e-05/0.4298, allocations: 23.92 kB / 472.6 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.4311, allocations: 1.024 MB / 473.6 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4311, allocations: 3.938 kB / 473.6 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/0.4345, allocations: 1.604 MB / 475.2 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007943/0.4353, allocations: 240.1 kB / 475.5 MB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.4355, allocations: 12 kB / 475.5 MB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007197/0.4362, allocations: 31.97 kB / 475.5 MB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.4364, allocations: 56.52 kB / 475.6 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.962e-05/0.4365, allocations: 31.98 kB / 475.6 MB, free: 14.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008546/0.4374, allocations: 479 kB / 476.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4374, allocations: 0 / 476.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002199/0.4396, allocations: 0.5895 MB / 476.7 MB, free: 13.73 MB / 398.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.001709/0.4413, allocations: 490.8 kB / 477.1 MB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.445, allocations: 1.405 MB / 478.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/0.445, allocations: 0 / 478.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.4461, allocations: 467.5 kB / 479 MB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.4484, allocations: 392 kB / 479.4 MB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.4525, allocations: 1.775 MB / 481.2 MB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.4536, allocations: 0.9949 MB / 482.2 MB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.454, allocations: 83.41 kB / 482.2 MB, free: 8.086 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.454, allocations: 0 / 482.2 MB, free: 8.086 MB / 398.1 MB Notification: Performance of Templates: time 0.03552/0.4895, allocations: 19.38 MB / 0.4899 GB, free: 4.77 MB / 414.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