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.001051/0.001051, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.7 MB / 247.5 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002588, allocations: 4 kB / 308.4 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1064, allocations: 51.53 MB / 359.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2062/0.3127, allocations: 16.21 MB / 376.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.3237, allocations: 7.178 MB / 383.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3252, allocations: 28.75 kB / 383.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.3265, allocations: 296.3 kB / 383.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.3299, allocations: 1.016 MB / 384.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005542/0.3355, allocations: 1.502 MB / 386.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004751/0.3403, allocations: 3.194 MB / 389.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/0.3415, allocations: 0.5317 MB / 389.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.3433, allocations: 0.6891 MB / 390.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.3449, allocations: 0.8002 MB / 391.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.345, allocations: 45.81 kB / 391.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.3481, allocations: 1.211 MB / 392.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004267/0.3485, allocations: 281.9 kB / 392.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000677/0.3492, allocations: 441.1 kB / 393.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002175/0.3514, allocations: 1.313 MB / 394.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3514, allocations: 0 / 394.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3514, allocations: 0 / 394.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.3515, allocations: 1.438 kB / 394.6 MB, free: 4.691 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.002543/0.354, allocations: 1.105 MB / 395.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.3541, allocations: 9.781 kB / 395.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.3544, allocations: 95.3 kB / 395.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/0.3552, allocations: 0.6047 MB / 396.4 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.617e-05/0.3553, allocations: 106.3 kB / 396.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3554, allocations: 55.17 kB / 396.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3568, allocations: 0.8963 MB / 397.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3568, allocations: 0 / 397.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.733e-05/0.3569, allocations: 19.03 kB / 397.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.114e-05/0.357, allocations: 55.83 kB / 397.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.3583, allocations: 0.8423 MB / 398.4 MB, free: 2.164 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.005127/0.3634, allocations: 3.484 MB / 401.9 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.3644, allocations: 0.6545 MB / 402.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005216/0.365, allocations: 373.5 kB / 402.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002959/0.3679, allocations: 2.044 MB / 405 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.368, allocations: 49.55 kB / 405 MB, free: 13.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.755e-06/0.368, allocations: 0 / 405 MB, free: 13.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007107/0.3751, allocations: 2.857 MB / 407.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.3752, allocations: 93.59 kB / 407.9 MB, free: 11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008437/0.376, allocations: 0.6798 MB / 408.6 MB, free: 10.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.3761, allocations: 45.7 kB / 408.7 MB, free: 10.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.3764, allocations: 332.4 kB / 409 MB, free: 9.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.3766, allocations: 228.7 kB / 409.2 MB, free: 9.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.3767, allocations: 73.62 kB / 409.3 MB, free: 9.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3768, allocations: 382.8 kB / 409.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.3774, allocations: 365.8 kB / 410 MB, free: 8.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006882/0.3781, allocations: 0.5152 MB / 410.5 MB, free: 8.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.3794, allocations: 0.8677 MB / 411.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3794, allocations: 4 kB / 411.4 MB, free: 7.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00199/0.3814, allocations: 1.157 MB / 412.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.3816, allocations: 219.1 kB / 412.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3816, allocations: 7.938 kB / 412.8 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.3829, allocations: 451.4 kB / 413.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006564/0.3835, allocations: 163.8 kB / 413.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.3847, allocations: 1.009 MB / 414.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007848/0.3855, allocations: 48.73 kB / 414.4 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.048e-05/0.3856, allocations: 35.98 kB / 414.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/0.3856, allocations: 10.97 kB / 414.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/0.3874, allocations: 1.012 MB / 415.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3874, allocations: 4 kB / 415.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007015/0.3881, allocations: 312.7 kB / 415.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/0.3888, allocations: 167.8 kB / 416 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009319/0.3897, allocations: 0.9034 MB / 416.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006793/0.3904, allocations: 52.02 kB / 416.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.3905, allocations: 39.92 kB / 417 MB, free: 1.699 MB / 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.0004575/0.391, allocations: 330.1 kB / 417.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.3911, allocations: 79.06 kB / 417.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.393, allocations: 1.098 MB / 418.5 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3931, allocations: 8 kB / 418.5 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3931, allocations: 0 / 418.5 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3931, allocations: 7.922 kB / 418.5 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003038/0.3961, allocations: 1.994 MB / 420.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3961, allocations: 4 kB / 420.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005815/0.3967, allocations: 119.8 kB / 420.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.398, allocations: 452.5 kB / 421 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.19e-05/0.398, allocations: 20 kB / 421.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.3992, allocations: 1.031 MB / 422.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3992, allocations: 0 / 422.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4016, allocations: 1.599 MB / 423.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/0.4021, allocations: 248.1 kB / 423.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.4022, allocations: 16 kB / 423.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/0.4028, allocations: 47.91 kB / 424 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4029, allocations: 52.58 kB / 424 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-05/0.403, allocations: 31.97 kB / 424.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005883/0.4036, allocations: 479 kB / 424.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4036, allocations: 3.938 kB / 424.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001595/0.4052, allocations: 0.5818 MB / 425.1 MB, free: 9.387 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.001032/0.4063, allocations: 498.5 kB / 425.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.4091, allocations: 1.392 MB / 427 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4091, allocations: 3.938 kB / 427 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009185/0.41, allocations: 463.5 kB / 427.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4119, allocations: 365.1 kB / 427.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.4154, allocations: 2.148 MB / 430 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.4159, allocations: 0.9953 MB / 431 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.4162, allocations: 91.28 kB / 431.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4162, allocations: 0 / 431.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of Templates: time 0.0266/0.4428, allocations: 19.09 MB / 450.1 MB, free: 388 kB / 350.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