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.0009369/0.0009369, allocations: 195 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006868/0.0006868, allocations: 101 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000197/0.000197, allocations: 11.94 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2021, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009562/0.2117, allocations: 15.31 MB / 422.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006531/0.2183, allocations: 6.602 MB / 429.4 MB, free: 5.863 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005538/0.2189, allocations: 35.69 kB / 429.4 MB, free: 5.828 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005926/0.2195, allocations: 278.3 kB / 429.7 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.2211, allocations: 1.034 MB / 430.7 MB, free: 4.516 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002438/0.2235, allocations: 1.368 MB / 432.1 MB, free: 3.156 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.2252, allocations: 2.623 MB / 434.7 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004774/0.2257, allocations: 0.4976 MB / 435.2 MB, free: 12 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008892/0.2266, allocations: 0.7239 MB / 436 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008885/0.2275, allocations: 0.7747 MB / 436.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.2276, allocations: 47.94 kB / 436.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001742/0.2293, allocations: 1.049 MB / 437.8 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.2296, allocations: 271.1 kB / 438.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.2298, allocations: 177.3 kB / 438.3 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001349/0.2311, allocations: 1.283 MB / 439.5 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2311, allocations: 4 kB / 439.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2311, allocations: 0 / 439.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.2312, allocations: 0 / 439.6 MB, free: 11.68 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.00225/0.2334, allocations: 1.114 MB / 440.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.2335, allocations: 8.031 kB / 440.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002605/0.2337, allocations: 95.05 kB / 440.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008299/0.2346, allocations: 0.5779 MB / 441.3 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.2347, allocations: 104.7 kB / 441.4 MB, free: 9.676 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.02e-05/0.2348, allocations: 55.98 kB / 441.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.2361, allocations: 0.8923 MB / 442.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.2361, allocations: 0 / 442.4 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.294e-05/0.2362, allocations: 31.92 kB / 442.4 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.694e-05/0.2363, allocations: 45.28 kB / 442.5 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2376, allocations: 0.8444 MB / 443.3 MB, free: 7.781 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.005043/0.2427, allocations: 3.47 MB / 446.8 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000925/0.2436, allocations: 0.6532 MB / 447.4 MB, free: 3.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.2441, allocations: 366.3 kB / 447.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002527/0.2466, allocations: 2.051 MB / 449.8 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.2467, allocations: 43.06 kB / 449.9 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.723e-06/0.2467, allocations: 4 kB / 449.9 MB, free: 0.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006341/0.253, allocations: 2.848 MB / 452.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.2531, allocations: 85.67 kB / 452.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.2539, allocations: 0.6721 MB / 453.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.2539, allocations: 37.7 kB / 453.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.2542, allocations: 340.4 kB / 453.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.2544, allocations: 228.7 kB / 454.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.2544, allocations: 16 kB / 454.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.2546, allocations: 386.8 kB / 454.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.2551, allocations: 357.8 kB / 454.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006482/0.2558, allocations: 0.5074 MB / 455.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000623/0.2564, allocations: 411 kB / 455.7 MB, free: 10.76 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2564, allocations: 0 / 455.7 MB, free: 10.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001831/0.2583, allocations: 1.153 MB / 456.9 MB, free: 9.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.2584, allocations: 211.1 kB / 457.1 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2584, allocations: 12 kB / 457.1 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001199/0.2596, allocations: 444.4 kB / 457.5 MB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.2603, allocations: 163.7 kB / 457.7 MB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.2614, allocations: 1.017 MB / 458.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.262, allocations: 47.86 kB / 458.8 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.2621, allocations: 35.98 kB / 458.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/0.2621, allocations: 4 kB / 458.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001675/0.2637, allocations: 1 MB / 459.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2638, allocations: 4.062 kB / 459.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006491/0.2644, allocations: 312.7 kB / 460.1 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.265, allocations: 171.7 kB / 460.3 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009179/0.266, allocations: 0.8996 MB / 461.2 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.2665, allocations: 52.02 kB / 461.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.184e-05/0.2666, allocations: 39.92 kB / 461.3 MB, free: 5.09 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.0003683/0.2669, allocations: 328.8 kB / 461.6 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.2671, allocations: 79.06 kB / 461.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.2689, allocations: 1.076 MB / 462.7 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.2689, allocations: 15.98 kB / 462.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.269, allocations: 3.953 kB / 462.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.269, allocations: 0 / 462.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.2718, allocations: 1.998 MB / 464.8 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.2718, allocations: 0 / 464.8 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.2723, allocations: 119.9 kB / 464.9 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.2735, allocations: 449.4 kB / 465.3 MB, free: 0.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.987e-05/0.2735, allocations: 23.98 kB / 465.3 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.2746, allocations: 1.03 MB / 466.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2746, allocations: 0 / 466.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.2769, allocations: 1.592 MB / 468 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000324/0.2772, allocations: 252.1 kB / 468.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.2773, allocations: 16 kB / 468.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005624/0.2779, allocations: 55.77 kB / 468.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.278, allocations: 60.5 kB / 468.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.025e-05/0.2781, allocations: 23.98 kB / 468.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005295/0.2786, allocations: 475 kB / 468.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2786, allocations: 0 / 468.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001278/0.2799, allocations: 0.5857 MB / 469.4 MB, free: 12.8 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.0008826/0.2808, allocations: 490.4 kB / 469.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.2834, allocations: 1.373 MB / 471.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.2834, allocations: 4.25 kB / 471.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008991/0.2843, allocations: 467.4 kB / 471.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.2859, allocations: 368 kB / 472.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2889, allocations: 2.066 MB / 474.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.2895, allocations: 0.9874 MB / 475.1 MB, free: 7.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.2897, allocations: 83.41 kB / 475.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2897, allocations: 4 kB / 475.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of Templates: time 0.02199/0.3117, allocations: 19.03 MB / 494.3 MB, free: 3.957 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