Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001728, allocations: 193.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007839/0.000784, allocations: 101.7 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3051, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0204/0.3255, allocations: 15.36 MB / 423.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01297/0.3386, allocations: 6.606 MB / 430 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.3398, allocations: 31.69 kB / 430 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.3412, allocations: 282.3 kB / 430.3 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004142/0.3453, allocations: 1.077 MB / 431.4 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005934/0.3513, allocations: 1.385 MB / 432.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003607/0.3549, allocations: 2.635 MB / 435.4 MB, free: 284 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.3562, allocations: 0.5217 MB / 435.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002129/0.3584, allocations: 0.7006 MB / 436.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001992/0.3604, allocations: 0.763 MB / 437.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002876/0.3607, allocations: 40 kB / 437.4 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003791/0.3645, allocations: 1.154 MB / 438.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006889/0.3653, allocations: 279.1 kB / 438.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.3664, allocations: 423.8 kB / 439.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003087/0.3695, allocations: 1.307 MB / 440.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3695, allocations: 0 / 440.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.3695, allocations: 0 / 440.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/0.3696, allocations: 0 / 440.6 MB, free: 11.07 MB / 314.7 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.004176/0.3738, allocations: 1.107 MB / 441.7 MB, free: 9.918 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.3738, allocations: 8.031 kB / 441.7 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006274/0.3745, allocations: 99.98 kB / 441.8 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.3762, allocations: 0.5972 MB / 442.4 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3764, allocations: 100.7 kB / 442.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.3766, allocations: 55.98 kB / 442.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.3793, allocations: 0.8923 MB / 443.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/0.3794, allocations: 0 / 443.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.3796, allocations: 31.98 kB / 443.5 MB, free: 8.059 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3797, allocations: 45.28 kB / 443.5 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002629/0.3824, allocations: 0.8482 MB / 444.4 MB, free: 7.164 MB / 314.7 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.01013/0.3925, allocations: 3.477 MB / 447.8 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.3944, allocations: 0.6531 MB / 448.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.3955, allocations: 366.3 kB / 448.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005143/0.4007, allocations: 2.055 MB / 450.9 MB, free: 224 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/0.4008, allocations: 35.12 kB / 450.9 MB, free: 180 kB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.438e-06/0.4008, allocations: 4 kB / 450.9 MB, free: 176 kB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.01367/0.4145, allocations: 2.855 MB / 453.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.4146, allocations: 85.67 kB / 453.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.4162, allocations: 0.6759 MB / 454.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4163, allocations: 37.7 kB / 454.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/0.4168, allocations: 336.4 kB / 454.9 MB, free: 12.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003493/0.4171, allocations: 228.7 kB / 455.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.644e-05/0.4173, allocations: 16 kB / 455.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002581/0.4175, allocations: 386.8 kB / 455.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.4187, allocations: 361.7 kB / 455.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.4201, allocations: 0.5112 MB / 456.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.4227, allocations: 0.8482 MB / 457.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4227, allocations: 0 / 457.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003959/0.4267, allocations: 1.138 MB / 458.4 MB, free: 8.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002176/0.4269, allocations: 223 kB / 458.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.427, allocations: 11.92 kB / 458.6 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/0.4292, allocations: 440.4 kB / 459 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.4305, allocations: 155.8 kB / 459.2 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/0.4326, allocations: 1.021 MB / 460.2 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.4338, allocations: 51.83 kB / 460.3 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.434, allocations: 31.98 kB / 460.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.434, allocations: 7.938 kB / 460.3 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003344/0.4373, allocations: 1 MB / 461.3 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.4374, allocations: 8 kB / 461.3 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.4387, allocations: 316.7 kB / 461.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.44, allocations: 167.8 kB / 461.8 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.4417, allocations: 0.8996 MB / 462.7 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.4428, allocations: 47.88 kB / 462.7 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.4429, allocations: 35.98 kB / 462.8 MB, free: 3.961 MB / 330.7 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 (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 initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006486/0.4436, allocations: 324.9 kB / 463.1 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002617/0.4439, allocations: 79.06 kB / 463.2 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003598/0.4475, allocations: 1.091 MB / 464.3 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.4475, allocations: 12 kB / 464.3 MB, free: 2.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.4475, allocations: 3.938 kB / 464.3 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.4476, allocations: 3.984 kB / 464.3 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005298/0.4529, allocations: 1.998 MB / 466.3 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.4529, allocations: 3.938 kB / 466.3 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.4539, allocations: 119.8 kB / 466.4 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00217/0.4561, allocations: 449.4 kB / 466.8 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/0.4562, allocations: 23.98 kB / 466.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001974/0.4582, allocations: 1.022 MB / 467.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4582, allocations: 4 kB / 467.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.4627, allocations: 1.599 MB / 469.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006585/0.4634, allocations: 248 kB / 469.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002109/0.4636, allocations: 16 kB / 469.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009904/0.4646, allocations: 47.95 kB / 469.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.4648, allocations: 52.58 kB / 469.8 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.465, allocations: 31.97 kB / 469.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001007/0.466, allocations: 475 kB / 470.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.466, allocations: 0 / 470.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002403/0.4684, allocations: 0.5856 MB / 470.9 MB, free: 11.67 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001583/0.47, allocations: 490.5 kB / 471.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004307/0.4743, allocations: 1.381 MB / 472.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.4744, allocations: 4 kB / 472.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.4758, allocations: 463.4 kB / 473.2 MB, free: 9.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.4786, allocations: 368.2 kB / 473.6 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/0.4839, allocations: 2.07 MB / 475.7 MB, free: 6.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008352/0.4847, allocations: 0.9835 MB / 476.6 MB, free: 5.879 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004608/0.4852, allocations: 87.41 kB / 476.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4852, allocations: 0 / 476.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of Templates: time 0.04546/0.5307, allocations: 19.06 MB / 495.8 MB, free: 2.789 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches