Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 225.7 MB / 243.2 MB, free: 8.52 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007314/0.0007313, allocations: 97.95 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.000235, allocations: 11.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01022/0.2049, allocations: 16.22 MB / 420.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00724/0.2121, allocations: 9.684 MB / 430.5 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000704/0.2129, allocations: 31.75 kB / 430.5 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006825/0.2136, allocations: 290.4 kB / 430.8 MB, free: 4.207 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00168/0.2153, allocations: 1.007 MB / 431.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002785/0.2181, allocations: 1.5 MB / 433.3 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002187/0.2202, allocations: 3.177 MB / 436.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000625/0.2209, allocations: 0.5256 MB / 437 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.2218, allocations: 0.7199 MB / 437.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008541/0.2226, allocations: 0.7901 MB / 438.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.2227, allocations: 40 kB / 438.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.2245, allocations: 1.147 MB / 439.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000258/0.2248, allocations: 271.1 kB / 439.9 MB, free: 11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.2252, allocations: 443.6 kB / 440.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.227, allocations: 1.786 MB / 442.2 MB, free: 8.766 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.227, allocations: 4 kB / 442.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.227, allocations: 0 / 442.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.227, allocations: 0 / 442.2 MB, free: 8.762 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.002025/0.2291, allocations: 1.103 MB / 443.3 MB, free: 7.609 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2291, allocations: 8.031 kB / 443.3 MB, free: 7.602 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.2294, allocations: 100 kB / 443.4 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.2301, allocations: 0.6048 MB / 444 MB, free: 6.852 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.226e-05/0.2302, allocations: 104.7 kB / 444.1 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.06e-05/0.2303, allocations: 51.98 kB / 444.1 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.2316, allocations: 0.8923 MB / 445 MB, free: 5.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.2316, allocations: 4 kB / 445 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.2317, allocations: 27.98 kB / 445.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.776e-05/0.2318, allocations: 45.28 kB / 445.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.2331, allocations: 0.8405 MB / 445.9 MB, free: 4.855 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.004781/0.2378, allocations: 3.474 MB / 449.4 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009155/0.2388, allocations: 0.6531 MB / 450.1 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.2393, allocations: 366.3 kB / 450.4 MB, free: 172 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002449/0.2417, allocations: 2.051 MB / 452.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.2418, allocations: 39.12 kB / 452.5 MB, free: 13.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 1.582e-06/0.2418, allocations: 0 / 452.5 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.006118/0.2479, allocations: 2.855 MB / 455.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.248, allocations: 85.67 kB / 455.5 MB, free: 10.85 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.2487, allocations: 0.6759 MB / 456.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.2487, allocations: 41.64 kB / 456.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2489, allocations: 336.4 kB / 456.5 MB, free: 9.785 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.2491, allocations: 228.7 kB / 456.7 MB, free: 9.559 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.2492, allocations: 16 kB / 456.7 MB, free: 9.543 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2493, allocations: 386.8 kB / 457.1 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.2499, allocations: 357.8 kB / 457.5 MB, free: 8.809 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006216/0.2505, allocations: 0.5199 MB / 458 MB, free: 8.227 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.2516, allocations: 0.856 MB / 458.8 MB, free: 7.316 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2516, allocations: 0 / 458.8 MB, free: 7.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0018/0.2534, allocations: 1.149 MB / 460 MB, free: 6.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.2536, allocations: 234.9 kB / 460.2 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.2536, allocations: 4 kB / 460.2 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.2548, allocations: 448.4 kB / 460.7 MB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/0.2554, allocations: 159.8 kB / 460.8 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.2564, allocations: 1.013 MB / 461.8 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.257, allocations: 51.86 kB / 461.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.888e-05/0.2571, allocations: 31.98 kB / 461.9 MB, free: 4.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.574e-06/0.2571, allocations: 7.938 kB / 461.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001538/0.2586, allocations: 1 MB / 462.9 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.2586, allocations: 4 kB / 462.9 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/0.2593, allocations: 316.6 kB / 463.2 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.2599, allocations: 167.8 kB / 463.4 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008444/0.2607, allocations: 0.8957 MB / 464.3 MB, free: 1.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004866/0.2612, allocations: 51.86 kB / 464.3 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/0.2613, allocations: 35.98 kB / 464.4 MB, free: 1.641 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 (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.0003528/0.2617, allocations: 332.8 kB / 464.7 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.2618, allocations: 75.06 kB / 464.8 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.2636, allocations: 1.095 MB / 465.9 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.2637, allocations: 8 kB / 465.9 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2637, allocations: 7.938 kB / 465.9 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.2637, allocations: 3.984 kB / 465.9 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00289/0.2666, allocations: 1.998 MB / 467.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.2666, allocations: 7.922 kB / 467.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.2672, allocations: 119.8 kB / 468 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.2683, allocations: 456.5 kB / 468.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-05/0.2684, allocations: 20 kB / 468.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.2695, allocations: 1.024 MB / 469.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2695, allocations: 0 / 469.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.2717, allocations: 1.599 MB / 471.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.2721, allocations: 248.1 kB / 471.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.2722, allocations: 16 kB / 471.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.2727, allocations: 47.91 kB / 471.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.2729, allocations: 52.58 kB / 471.5 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.401e-05/0.273, allocations: 27.97 kB / 471.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005299/0.2735, allocations: 475 kB / 472 MB, free: 9.906 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2735, allocations: 4 kB / 472 MB, free: 9.902 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001284/0.2748, allocations: 0.5817 MB / 472.5 MB, free: 9.32 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 (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.0008969/0.2757, allocations: 491.8 kB / 473 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002587/0.2783, allocations: 1.389 MB / 474.4 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2783, allocations: 3.938 kB / 474.4 MB, free: 7.441 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008741/0.2792, allocations: 463.4 kB / 474.9 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.2807, allocations: 357.7 kB / 475.2 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.2838, allocations: 2.115 MB / 477.3 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.2843, allocations: 0.9913 MB / 478.3 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000982/0.2853, allocations: 306.5 kB / 478.6 MB, free: 3.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.2855, allocations: 71.42 kB / 478.7 MB, free: 3.109 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2855, allocations: 0 / 478.7 MB, free: 3.109 MB / 346.7 MB Notification: Performance of Templates: time 0.02935/0.3149, allocations: 21.73 MB / 0.4887 GB, free: 13.54 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches