Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test20,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.298/2.298, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006248/0.0006251, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3529, allocations: 54.86 MB / 369.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.5009, allocations: 82.11 MB / 451.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.5013, allocations: 71.91 kB / 451.5 MB, free: 10.45 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.02016/0.5214, allocations: 4.489 MB / 456 MB, free: 5.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5215, allocations: 0 / 456 MB, free: 5.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.5215, allocations: 0 / 456 MB, free: 5.953 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006807/0.5222, allocations: 478.1 kB / 456.5 MB, free: 5.426 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5223, allocations: 12.03 kB / 456.5 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.354e-05/0.5223, allocations: 38.56 kB / 456.5 MB, free: 5.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.809e-05/0.5224, allocations: 7.906 kB / 456.6 MB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.5227, allocations: 210.3 kB / 456.8 MB, free: 5.117 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.5228, allocations: 7.938 kB / 456.8 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.5228, allocations: 4 kB / 456.8 MB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.523, allocations: 61.66 kB / 456.8 MB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.523, allocations: 0 / 456.8 MB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.5231, allocations: 3.953 kB / 456.8 MB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.5231, allocations: 0 / 456.8 MB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.5232, allocations: 23.98 kB / 456.9 MB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.5237, allocations: 304.9 kB / 457.2 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.524, allocations: 66.55 kB / 457.2 MB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.524, allocations: 0 / 457.2 MB, free: 4.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.5242, allocations: 76.19 kB / 457.3 MB, free: 4.504 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.124e-06/0.5242, allocations: 0 / 457.3 MB, free: 4.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008168/0.5251, allocations: 193.1 kB / 457.5 MB, free: 4.309 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.5251, allocations: 51.41 kB / 457.5 MB, free: 4.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.5254, allocations: 165.3 kB / 457.7 MB, free: 4.078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.5254, allocations: 33.7 kB / 457.7 MB, free: 4.039 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.5255, allocations: 158.5 kB / 457.9 MB, free: 3.883 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.57e-05/0.5256, allocations: 31.64 kB / 457.9 MB, free: 3.852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.5256, allocations: 8 kB / 457.9 MB, free: 3.844 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5257, allocations: 310.8 kB / 458.2 MB, free: 3.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.5259, allocations: 43.91 kB / 458.3 MB, free: 3.488 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.5261, allocations: 52.38 kB / 458.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.5263, allocations: 73.69 kB / 458.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5263, allocations: 0 / 458.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000463/0.5268, allocations: 183.2 kB / 458.6 MB, free: 3.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/0.5268, allocations: 38.73 kB / 458.6 MB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.5268, allocations: 4.312 kB / 458.6 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.5269, allocations: 4 kB / 458.6 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.527, allocations: 15.98 kB / 458.6 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.527, allocations: 0 / 458.6 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.5271, allocations: 8 kB / 458.6 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.5272, allocations: 8 kB / 458.6 MB, free: 3.082 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.5274, allocations: 133.8 kB / 458.8 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.358e-05/0.5274, allocations: 23.7 kB / 458.8 MB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003924/0.5278, allocations: 114.4 kB / 458.9 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.5278, allocations: 0 / 458.9 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.5278, allocations: 0 / 458.9 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5278, allocations: 3.938 kB / 458.9 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006834/0.5285, allocations: 411.3 kB / 459.3 MB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5286, allocations: 4.031 kB / 459.3 MB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.363e-05/0.5286, allocations: 11.94 kB / 459.3 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.5287, allocations: 3.938 kB / 459.3 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.5287, allocations: 7.984 kB / 459.3 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.5287, allocations: 0 / 459.3 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5287, allocations: 0 / 459.3 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.5291, allocations: 225.9 kB / 459.6 MB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.702e-05/0.5292, allocations: 100.9 kB / 459.7 MB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.588e-05/0.5293, allocations: 4 kB / 459.7 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.5294, allocations: 7.984 kB / 459.7 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.5295, allocations: 4 kB / 459.7 MB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.5295, allocations: 4 kB / 459.7 MB, free: 1.914 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001769/0.5297, allocations: 139.2 kB / 459.8 MB, free: 1.777 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5297, allocations: 0 / 459.8 MB, free: 1.777 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004128/0.5301, allocations: 47.92 kB / 459.9 MB, free: 1.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00189/0.532, allocations: 1.172 MB / 461 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.5325, allocations: 175.3 kB / 461.2 MB, free: 444 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5325, allocations: 0 / 461.2 MB, free: 444 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.5326, allocations: 35.92 kB / 461.2 MB, free: 408 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.533, allocations: 19.98 kB / 461.3 MB, free: 388 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.5341, allocations: 0.6694 MB / 461.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.5345, allocations: 0.7082 MB / 462.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.632e-05/0.5346, allocations: 35.42 kB / 462.7 MB, free: 14.88 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5346, allocations: 0 / 462.7 MB, free: 14.88 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.793/3.328, allocations: 2.414 MB / 465.1 MB, free: 12.46 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat does not exist to compare? outputFormat=mat