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.208/2.208, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004824, allocations: 12 kB / 314.3 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2793, allocations: 54.88 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001887/0.2812, allocations: 1.134 MB / 370.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008457/0.2821, allocations: 414 kB / 370.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.2822, allocations: 0 / 370.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.924e-05/0.2822, allocations: 7.938 kB / 370.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.688e-05/0.2823, allocations: 7.984 kB / 370.7 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.2825, allocations: 7.984 kB / 370.7 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.582e-05/0.2825, allocations: 23.97 kB / 370.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.904e-05/0.2826, allocations: 7.938 kB / 370.8 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2827, allocations: 19.92 kB / 370.8 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.21e-05/0.2828, allocations: 15.91 kB / 370.8 MB, free: 9.055 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.2829, allocations: 0 / 370.8 MB, free: 9.055 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.2829, allocations: 4 kB / 370.8 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.2829, allocations: 8 kB / 370.8 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.155e-05/0.2829, allocations: 25.7 kB / 370.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.166e-05/0.283, allocations: 19.95 kB / 370.9 MB, free: 8.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.859e-06/0.283, allocations: 0 / 370.9 MB, free: 8.992 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.247e-06/0.283, allocations: 0 / 370.9 MB, free: 8.992 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.186e-06/0.2831, allocations: 0 / 370.9 MB, free: 8.992 MB / 298.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.0004984/0.2836, allocations: 355.8 kB / 371.2 MB, free: 8.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.2836, allocations: 12.03 kB / 371.2 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.2837, allocations: 3.906 kB / 371.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.2838, allocations: 163.1 kB / 371.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.2839, allocations: 3.938 kB / 371.4 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.2839, allocations: 8 kB / 371.4 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.2841, allocations: 59.39 kB / 371.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2841, allocations: 0 / 371.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.2841, allocations: 4 kB / 371.5 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.382e-06/0.2841, allocations: 3.953 kB / 371.5 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.2843, allocations: 31.91 kB / 371.5 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.2848, allocations: 261 kB / 371.8 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.2849, allocations: 34.58 kB / 371.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.2849, allocations: 3.984 kB / 371.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.285, allocations: 34.55 kB / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 2.058e-06/0.285, allocations: 0 / 371.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003089/0.2853, allocations: 77.64 kB / 371.9 MB, free: 7.785 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.2854, allocations: 85.09 kB / 372 MB, free: 7.684 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.2855, allocations: 105.8 kB / 372.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.2856, allocations: 29.7 kB / 372.1 MB, free: 7.535 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.869e-05/0.2857, allocations: 154.6 kB / 372.3 MB, free: 7.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2857, allocations: 11.78 kB / 372.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-06/0.2857, allocations: 0 / 372.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2859, allocations: 314.8 kB / 372.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.374e-05/0.286, allocations: 20.02 kB / 372.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.922e-05/0.2861, allocations: 21.72 kB / 372.6 MB, free: 7.008 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.589e-05/0.2861, allocations: 11.98 kB / 372.6 MB, free: 6.996 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.282e-06/0.2862, allocations: 0 / 372.6 MB, free: 6.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001979/0.2864, allocations: 73.64 kB / 372.7 MB, free: 6.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2864, allocations: 4 kB / 372.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2864, allocations: 320 / 372.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2864, allocations: 3.953 kB / 372.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.521e-05/0.2865, allocations: 4 kB / 372.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.476e-06/0.2866, allocations: 0 / 372.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.068e-05/0.2866, allocations: 11.98 kB / 372.7 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.2867, allocations: 7.984 kB / 372.7 MB, free: 6.887 MB / 298.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.0001098/0.2868, allocations: 113.8 kB / 372.8 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.2868, allocations: 4 kB / 372.9 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.2869, allocations: 3.531 kB / 372.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.2869, allocations: 7.938 kB / 372.9 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.431e-06/0.2869, allocations: 0 / 372.9 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2869, allocations: 4 kB / 372.9 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.2872, allocations: 161.7 kB / 373 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-06/0.2872, allocations: 0 / 373 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.2872, allocations: 4 kB / 373 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.319e-06/0.2873, allocations: 4 kB / 373 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-06/0.2873, allocations: 3.938 kB / 373 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.585e-06/0.2873, allocations: 7.938 kB / 373 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.154e-06/0.2873, allocations: 3.953 kB / 373 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.2876, allocations: 151.4 kB / 373.2 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.2877, allocations: 85.11 kB / 373.3 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.2877, allocations: 4.031 kB / 373.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.2878, allocations: 15.98 kB / 373.3 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.2879, allocations: 3.984 kB / 373.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.2879, allocations: 7.953 kB / 373.3 MB, free: 6.219 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.976e-05/0.288, allocations: 87.27 kB / 373.4 MB, free: 6.133 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.815e-06/0.288, allocations: 0 / 373.4 MB, free: 6.133 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000301/0.2883, allocations: 11.94 kB / 373.4 MB, free: 6.121 MB / 298.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.0001222/0.2885, allocations: 95.95 kB / 373.5 MB, free: 6.016 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.2887, allocations: 35.92 kB / 373.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.073e-06/0.2887, allocations: 0 / 373.5 MB, free: 5.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.32e-05/0.2888, allocations: 15.98 kB / 373.6 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.289, allocations: 0 / 373.6 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/0.2893, allocations: 166.4 kB / 373.7 MB, free: 5.773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.2897, allocations: 0.6809 MB / 374.4 MB, free: 5.066 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.2898, allocations: 11.44 kB / 374.4 MB, free: 5.055 MB / 298.7 MB Notification: Performance of SimCode: time 1.47e-06/0.2898, allocations: 0 / 374.4 MB, free: 5.055 MB / 298.7 MB Notification: Performance of Templates: time 0.002287/0.2921, allocations: 0.6242 MB / 375 MB, free: 4.43 MB / 298.7 MB