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.Test41.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test41,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.806e-05/2.815e-05, allocations: 8 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3289, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4709, allocations: 81.39 MB / 439.5 MB, free: 13.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.4712, allocations: 71.95 kB / 439.6 MB, free: 13.28 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.02029/0.4915, allocations: 4.654 MB / 444.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4916, allocations: 0 / 444.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.4916, allocations: 0 / 444.2 MB, free: 8.621 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.0005852/0.4922, allocations: 475.5 kB / 444.7 MB, free: 8.102 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.4922, allocations: 8.031 kB / 444.7 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.4923, allocations: 15.84 kB / 444.7 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.4927, allocations: 207.6 kB / 444.9 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.4927, allocations: 4 kB / 444.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.4928, allocations: 7.984 kB / 445 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.671e-05/0.4929, allocations: 16 kB / 445 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.493, allocations: 53.67 kB / 445 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.4931, allocations: 3.953 kB / 445 MB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.4931, allocations: 0 / 445 MB, free: 7.742 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.4931, allocations: 4 kB / 445 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004576/0.4936, allocations: 293.3 kB / 445.3 MB, free: 7.414 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.4937, allocations: 54.69 kB / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.4938, allocations: 20.97 kB / 445.4 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.4938, allocations: 0 / 445.4 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.494, allocations: 71.36 kB / 445.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.224e-06/0.494, allocations: 0 / 445.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005845/0.4946, allocations: 157.2 kB / 445.6 MB, free: 7.086 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.4946, allocations: 51.41 kB / 445.7 MB, free: 7.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.4949, allocations: 189.5 kB / 445.8 MB, free: 6.828 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.4949, allocations: 29.64 kB / 445.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.847e-05/0.495, allocations: 166.5 kB / 446 MB, free: 6.629 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.588e-05/0.4951, allocations: 23.7 kB / 446.1 MB, free: 6.605 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-06/0.4951, allocations: 0 / 446.1 MB, free: 6.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.4952, allocations: 319.5 kB / 446.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/0.4953, allocations: 32 kB / 446.4 MB, free: 6.254 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.4954, allocations: 53.64 kB / 446.5 MB, free: 6.195 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.4956, allocations: 39.98 kB / 446.5 MB, free: 6.156 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4956, allocations: 0 / 446.5 MB, free: 6.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003259/0.4959, allocations: 121.7 kB / 446.6 MB, free: 6.031 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.496, allocations: 37.69 kB / 446.6 MB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.496, allocations: 3.953 kB / 446.7 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.496, allocations: 0 / 446.7 MB, free: 5.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.4961, allocations: 19.97 kB / 446.7 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.4962, allocations: 8 kB / 446.7 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.4963, allocations: 8.078 kB / 446.7 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.4963, allocations: 7.938 kB / 446.7 MB, free: 5.941 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 () * 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 8.237e-05/0.4964, allocations: 108.9 kB / 446.8 MB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002279/0.4966, allocations: 105.4 kB / 446.9 MB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.4967, allocations: 15.86 kB / 446.9 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.497, allocations: 111.4 kB / 447 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.497, allocations: 7.938 kB / 447 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4971, allocations: 3.984 kB / 447 MB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4971, allocations: 0 / 447 MB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.4976, allocations: 380 kB / 447.4 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4977, allocations: 0 / 447.4 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.4978, allocations: 19.92 kB / 447.4 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.4978, allocations: 0 / 447.4 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.4978, allocations: 0 / 447.4 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.4978, allocations: 0 / 447.4 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4978, allocations: 8.031 kB / 447.4 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.4981, allocations: 217.9 kB / 447.7 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.4982, allocations: 100.9 kB / 447.8 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.4983, allocations: 4 kB / 447.8 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.4984, allocations: 7.922 kB / 447.8 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.4985, allocations: 8 kB / 447.8 MB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.4985, allocations: 8 kB / 447.8 MB, free: 4.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001801/0.4987, allocations: 147.2 kB / 447.9 MB, free: 4.602 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.4987, allocations: 0 / 447.9 MB, free: 4.602 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004203/0.4991, allocations: 39.94 kB / 448 MB, free: 4.562 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) * 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.001506/0.5007, allocations: 1.089 MB / 449.1 MB, free: 3.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003494/0.501, allocations: 163.3 kB / 449.2 MB, free: 3.328 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5011, allocations: 0 / 449.2 MB, free: 3.328 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.519e-05/0.5011, allocations: 32 kB / 449.2 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.5015, allocations: 28.92 kB / 449.3 MB, free: 3.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007634/0.5023, allocations: 262 kB / 449.5 MB, free: 2.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.5026, allocations: 0.7119 MB / 450.2 MB, free: 2.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.379e-05/0.5027, allocations: 35.42 kB / 450.3 MB, free: 2.199 MB / 378.7 MB Notification: Performance of SimCode: time 1.031e-06/0.5027, allocations: 4.062 kB / 450.3 MB, free: 2.195 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.498/3, allocations: 2.557 MB / 452.8 MB, free: 15.63 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat does not exist to compare? outputFormat=mat