Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test71.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test71,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|startTime.nextTimeEvent|startTime_0.nextTimeEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test71") Notification: Performance of loadModel(ModelicaTest): time 1.92/1.92, allocations: 209.2 MB / 225.4 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005982/0.0005984, allocations: 16 kB / 283.1 MB, free: 9.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1013, allocations: 48.71 MB / 331.8 MB, free: 9.02 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3902/0.4915, allocations: 75.72 MB / 407.5 MB, free: 9.539 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.4919, allocations: 75.97 kB / 407.6 MB, free: 9.465 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0235/0.5154, allocations: 5.484 MB / 413.1 MB, free: 3.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.5154, allocations: 0 / 413.1 MB, free: 3.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.934e-05/0.5155, allocations: 11.94 kB / 413.1 MB, free: 3.98 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001298/0.5168, allocations: 0.7461 MB / 413.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.5169, allocations: 11.97 kB / 413.9 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.517, allocations: 51.44 kB / 413.9 MB, free: 3.109 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.5182, allocations: 459.1 kB / 414.4 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.5182, allocations: 4 kB / 414.4 MB, free: 2.617 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.5183, allocations: 4 kB / 414.4 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.5185, allocations: 67.33 kB / 414.4 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.5185, allocations: 7.969 kB / 414.4 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.5185, allocations: 0 / 414.4 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5185, allocations: 0 / 414.4 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.174e-05/0.5186, allocations: 23.98 kB / 414.5 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006231/0.5193, allocations: 378.3 kB / 414.8 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.5194, allocations: 61.14 kB / 414.9 MB, free: 2.004 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.5195, allocations: 3.984 kB / 414.9 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.5197, allocations: 97.03 kB / 415 MB, free: 1.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.455e-06/0.5197, allocations: 0 / 415 MB, free: 1.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005713/0.5203, allocations: 149 kB / 415.1 MB, free: 1.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.5204, allocations: 77.11 kB / 415.2 MB, free: 1.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.5228, allocations: 0.9791 MB / 416.2 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.085e-05/0.5229, allocations: 29.7 kB / 416.2 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.5231, allocations: 258.5 kB / 416.5 MB, free: 368 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.727e-05/0.5232, allocations: 23.73 kB / 416.5 MB, free: 344 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.5232, allocations: 0 / 416.5 MB, free: 344 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.5234, allocations: 318.8 kB / 416.8 MB, free: 16 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.5235, allocations: 36.05 kB / 416.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.5237, allocations: 53.7 kB / 416.9 MB, free: 15.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.5239, allocations: 95.39 kB / 417 MB, free: 15.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.5239, allocations: 0 / 417 MB, free: 15.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004764/0.5244, allocations: 201 kB / 417.2 MB, free: 15.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.43e-05/0.5245, allocations: 63.39 kB / 417.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.5245, allocations: 0 / 417.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.5245, allocations: 3.938 kB / 417.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.5247, allocations: 12 kB / 417.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.5247, allocations: 3.984 kB / 417.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.525, allocations: 19.89 kB / 417.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.5251, allocations: 4 kB / 417.3 MB, free: 15.48 MB / 346.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: 6 ($whenCondition2,$PRE.startTime.nextTimeEvent,startTime.nextTimeEvent,$whenCondition1,$PRE.startTime_0.nextTimeEvent,startTime_0.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0004208/0.5255, allocations: 229.6 kB / 417.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.5257, allocations: 51.44 kB / 417.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/0.5262, allocations: 157.2 kB / 417.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.5262, allocations: 4 kB / 417.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5262, allocations: 0 / 417.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.5262, allocations: 0 / 417.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000572/0.5268, allocations: 369.2 kB / 418.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.5268, allocations: 4 kB / 418.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.196e-05/0.5269, allocations: 4.125 kB / 418.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.527, allocations: 4 kB / 418.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.527, allocations: 11.98 kB / 418.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.527, allocations: 0 / 418.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.527, allocations: 0 / 418.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.5274, allocations: 169.8 kB / 418.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003633/0.5278, allocations: 188.6 kB / 418.5 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5279, allocations: 11.92 kB / 418.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.5281, allocations: 8 kB / 418.5 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.5282, allocations: 11.98 kB / 418.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.5282, allocations: 0 / 418.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001609/0.5299, allocations: 0.7292 MB / 419.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5299, allocations: 0 / 419.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006116/0.5305, allocations: 99.92 kB / 419.3 MB, free: 13.35 MB / 346.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: 4 ($whenCondition2,startTime.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEvent) * Number of discrete states: 2 (startTime_0.nextTimeEvent,startTime.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.001472/0.532, allocations: 490.2 kB / 419.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004923/0.5326, allocations: 202.7 kB / 420 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5326, allocations: 0 / 420 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.5327, allocations: 31.92 kB / 420 MB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.5333, allocations: 49.5 kB / 420.1 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.5357, allocations: 0.9851 MB / 421.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.5363, allocations: 0.8429 MB / 421.9 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.5365, allocations: 39.42 kB / 421.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5365, allocations: 0 / 421.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of Templates: time 0.01502/0.5516, allocations: 5.5 MB / 427.4 MB, free: 5.223 MB / 346.7 MB