Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 113 kB / 16.92 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002289/0.002289, allocations: 187.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001115, allocations: 47.7 kB / 300.6 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 49.45 MB / 350 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01648/0.1184, allocations: 15.83 MB / 365.9 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1769/0.2953, allocations: 6.892 MB / 372.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006691/0.296, allocations: 21.69 kB / 372.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008161/0.2968, allocations: 331.2 kB / 373.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002386/0.2992, allocations: 1.065 MB / 374.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004467/0.3037, allocations: 1.807 MB / 376 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003113/0.3068, allocations: 2.143 MB / 378.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009638/0.3078, allocations: 0.6015 MB / 378.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.3092, allocations: 0.7836 MB / 379.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.3103, allocations: 0.8052 MB / 380.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.3105, allocations: 79.31 kB / 380.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002505/0.313, allocations: 1.214 MB / 381.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003372/0.3133, allocations: 317.6 kB / 381.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005/0.3138, allocations: 463.8 kB / 382.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.3168, allocations: 1.823 MB / 384.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3168, allocations: 0 / 384.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3168, allocations: 0 / 384.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.3168, allocations: 1.094 kB / 384.2 MB, free: 8.113 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.002976/0.3198, allocations: 1.263 MB / 385.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3199, allocations: 10.41 kB / 385.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.3202, allocations: 97.94 kB / 385.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008053/0.321, allocations: 0.5995 MB / 386.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.733e-05/0.3211, allocations: 103 kB / 386.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3212, allocations: 57.28 kB / 386.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.3226, allocations: 0.8902 MB / 387.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.3226, allocations: 9.125 kB / 387.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.29e-05/0.3227, allocations: 30.95 kB / 387.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.997e-05/0.3228, allocations: 52.39 kB / 387.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.3241, allocations: 0.8376 MB / 388.1 MB, free: 6.02 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.004888/0.329, allocations: 3.468 MB / 391.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009086/0.3299, allocations: 0.663 MB / 392.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.3304, allocations: 374.9 kB / 392.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002694/0.3331, allocations: 2.03 MB / 394.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.3332, allocations: 41.81 kB / 394.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.915e-06/0.3332, allocations: 1.406 kB / 394.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006839/0.34, allocations: 2.837 MB / 397.6 MB, free: 15.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.3401, allocations: 87.53 kB / 397.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008039/0.3409, allocations: 0.6772 MB / 398.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.651e-05/0.341, allocations: 40.55 kB / 398.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.3412, allocations: 338.7 kB / 398.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.3414, allocations: 220.2 kB / 398.9 MB, free: 14.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.3417, allocations: 156.5 kB / 399.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3419, allocations: 394 kB / 399.4 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/0.3424, allocations: 368.6 kB / 399.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006779/0.3431, allocations: 0.5212 MB / 400.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.3444, allocations: 0.8594 MB / 401.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3444, allocations: 0 / 401.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001994/0.3464, allocations: 1.164 MB / 402.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.3464, allocations: 8.562 kB / 402.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3464, allocations: 4 kB / 402.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.3478, allocations: 460.4 kB / 402.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000665/0.3485, allocations: 155.8 kB / 403 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.3498, allocations: 1.019 MB / 404 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006562/0.3505, allocations: 36.02 kB / 404 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.97e-05/0.3505, allocations: 35.98 kB / 404 MB, free: 10 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008923/0.3514, allocations: 0.5292 MB / 404.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006549/0.3521, allocations: 0.5121 MB / 405.1 MB, free: 8.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001206/0.3533, allocations: 0.8382 MB / 405.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/0.3533, allocations: 4 kB / 405.9 MB, free: 8 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001827/0.3552, allocations: 1.102 MB / 407 MB, free: 6.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3552, allocations: 12.03 kB / 407 MB, free: 6.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3552, allocations: 4 kB / 407 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006932/0.3559, allocations: 316.6 kB / 407.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006403/0.3566, allocations: 163.8 kB / 407.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009499/0.3575, allocations: 0.9033 MB / 408.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006301/0.3582, allocations: 36.02 kB / 408.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-05/0.3582, allocations: 36 kB / 408.5 MB, free: 5.398 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.0002607/0.3585, allocations: 232.1 kB / 408.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.3587, allocations: 75.16 kB / 408.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/0.3607, allocations: 1.087 MB / 409.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3607, allocations: 15.92 kB / 409.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3607, allocations: 4 kB / 409.9 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3607, allocations: 0 / 409.9 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.3638, allocations: 2.008 MB / 411.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.3638, allocations: 4 kB / 411.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/0.3644, allocations: 119.8 kB / 412 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.3655, allocations: 454.7 kB / 412.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.173e-05/0.3656, allocations: 12 kB / 412.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3667, allocations: 1.028 MB / 413.5 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3667, allocations: 0 / 413.5 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.3691, allocations: 1.599 MB / 415.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003949/0.3695, allocations: 248 kB / 415.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.3697, allocations: 16 kB / 415.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.3702, allocations: 31.97 kB / 415.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.3704, allocations: 60.52 kB / 415.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.928e-05/0.3705, allocations: 31.97 kB / 415.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000564/0.371, allocations: 479 kB / 416 MB, free: 13.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.371, allocations: 0 / 416 MB, free: 13.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001909/0.3729, allocations: 0.5779 MB / 416.5 MB, free: 13.22 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.001825/0.3748, allocations: 490.1 kB / 417 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003481/0.3783, allocations: 1.561 MB / 418.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3783, allocations: 0 / 418.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009388/0.3793, allocations: 472.1 kB / 419 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.3812, allocations: 390.6 kB / 419.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003343/0.3846, allocations: 1.743 MB / 421.2 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.3851, allocations: 0.9911 MB / 422.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3862, allocations: 310.5 kB / 422.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.3864, allocations: 75.41 kB / 422.5 MB, free: 7.215 MB / 334.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3864, allocations: 3.938 kB / 422.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of Templates: time 0.03711/0.4235, allocations: 22.93 MB / 445.5 MB, free: 0.4961 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches