Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadModel(ModelicaTest): time 2.209/2.209, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004495, allocations: 12 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.276, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.3968, allocations: 80.2 MB / 449.5 MB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.3971, allocations: 63.97 kB / 449.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003414/0.4005, allocations: 0.9152 MB / 450.4 MB, free: 9.402 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.695e-06/0.4006, allocations: 4 kB / 450.5 MB, free: 9.398 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.711e-06/0.4006, allocations: 3.938 kB / 450.5 MB, free: 9.395 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004238/0.401, allocations: 347.2 kB / 450.8 MB, free: 9.008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4011, allocations: 8.031 kB / 450.8 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4e-05/0.4011, allocations: 15.8 kB / 450.8 MB, free: 8.984 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.4013, allocations: 167 kB / 451 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.4013, allocations: 0 / 451 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.4013, allocations: 7.984 kB / 451 MB, free: 8.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.4015, allocations: 63.39 kB / 451 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.36e-06/0.4016, allocations: 0 / 451 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.4016, allocations: 0 / 451 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.192e-06/0.4016, allocations: 0 / 451 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.4017, allocations: 31.88 kB / 451.1 MB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004378/0.4022, allocations: 265 kB / 451.3 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.4023, allocations: 30.58 kB / 451.4 MB, free: 8.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.4023, allocations: 0 / 451.4 MB, free: 8.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.4024, allocations: 30.56 kB / 451.4 MB, free: 8.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.715e-06/0.4024, allocations: 0 / 451.4 MB, free: 8.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003169/0.4027, allocations: 85.53 kB / 451.5 MB, free: 8.191 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.4028, allocations: 77.11 kB / 451.6 MB, free: 8.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.092e-05/0.4029, allocations: 104.9 kB / 451.7 MB, free: 7.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.4029, allocations: 25.7 kB / 451.7 MB, free: 7.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.403, allocations: 158.6 kB / 451.8 MB, free: 7.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.4031, allocations: 7.891 kB / 451.8 MB, free: 7.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-06/0.4031, allocations: 0 / 451.8 MB, free: 7.793 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4032, allocations: 315 kB / 452.2 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7e-05/0.4033, allocations: 12 kB / 452.2 MB, free: 7.465 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-05/0.4034, allocations: 29.7 kB / 452.2 MB, free: 7.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.63e-05/0.4035, allocations: 11.98 kB / 452.2 MB, free: 7.418 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.407e-06/0.4035, allocations: 0 / 452.2 MB, free: 7.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001894/0.4037, allocations: 65.66 kB / 452.3 MB, free: 7.348 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4037, allocations: 8 kB / 452.3 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.603e-06/0.4038, allocations: 0 / 452.3 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.4038, allocations: 0 / 452.3 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.274e-05/0.4039, allocations: 7.984 kB / 452.3 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.999e-06/0.4039, allocations: 3.953 kB / 452.3 MB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.404, allocations: 11.98 kB / 452.3 MB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.46e-06/0.404, allocations: 4 kB / 452.3 MB, free: 7.312 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.4041, allocations: 113.8 kB / 452.4 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.4042, allocations: 4 kB / 452.4 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.4042, allocations: 3.531 kB / 452.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.691e-06/0.4042, allocations: 0 / 452.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.448e-06/0.4042, allocations: 0 / 452.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.264e-06/0.4042, allocations: 3.953 kB / 452.4 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.4045, allocations: 165.7 kB / 452.6 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-06/0.4045, allocations: 0 / 452.6 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.837e-05/0.4046, allocations: 19.92 kB / 452.6 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.309e-06/0.4046, allocations: 0 / 452.6 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4046, allocations: 0 / 452.6 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.21e-06/0.4046, allocations: 3.938 kB / 452.6 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-06/0.4046, allocations: 0 / 452.6 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.4049, allocations: 155.4 kB / 452.8 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.4049, allocations: 85.28 kB / 452.8 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.405, allocations: 7.984 kB / 452.9 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.4051, allocations: 11.98 kB / 452.9 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.4052, allocations: 7.984 kB / 452.9 MB, free: 6.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.769e-06/0.4052, allocations: 3.938 kB / 452.9 MB, free: 6.637 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.925e-05/0.4053, allocations: 87.28 kB / 453 MB, free: 6.551 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.77e-07/0.4053, allocations: 0 / 453 MB, free: 6.551 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003038/0.4056, allocations: 4 kB / 453 MB, free: 6.547 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001106/0.4057, allocations: 103.2 kB / 453.1 MB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.4059, allocations: 35.92 kB / 453.1 MB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.729e-06/0.4059, allocations: 0 / 453.1 MB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.213e-05/0.406, allocations: 12 kB / 453.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.4062, allocations: 11.95 kB / 453.1 MB, free: 6.379 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.4065, allocations: 162.3 kB / 453.3 MB, free: 6.188 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.4069, allocations: 0.6809 MB / 454 MB, free: 5.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.407, allocations: 11.42 kB / 454 MB, free: 5.469 MB / 378.7 MB Notification: Performance of SimCode: time 1.366e-06/0.407, allocations: 0 / 454 MB, free: 5.469 MB / 378.7 MB Notification: Performance of Templates: time 0.002263/0.4093, allocations: 0.6303 MB / 454.6 MB, free: 4.836 MB / 378.7 MB