Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Limiters.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Limiters") Notification: Performance of loadModel(ModelicaTest): time 1.906/1.906, allocations: 209.3 MB / 224.8 MB, free: 436 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004484/0.0004483, allocations: 8 kB / 282.5 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001803/0.2815, allocations: 1.295 MB / 332.5 MB, free: 5.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.2825, allocations: 0.5499 MB / 333 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.633e-05/0.2826, allocations: 2.594 kB / 333 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.186e-05/0.2826, allocations: 6.047 kB / 333 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.699e-05/0.2828, allocations: 20.5 kB / 333 MB, free: 5.422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005767/0.2833, allocations: 149.3 kB / 333.2 MB, free: 5.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.2835, allocations: 105.4 kB / 333.3 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.2837, allocations: 25 kB / 333.3 MB, free: 5.281 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.2838, allocations: 71.48 kB / 333.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.2839, allocations: 57.73 kB / 333.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.284, allocations: 6.125 kB / 333.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.151e-05/0.284, allocations: 8.156 kB / 333.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.617e-05/0.2841, allocations: 30.28 kB / 333.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.389e-05/0.2841, allocations: 42.11 kB / 333.5 MB, free: 5.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.2843, allocations: 92.98 kB / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.813e-06/0.2843, allocations: 0 / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.975e-06/0.2844, allocations: 1.656 kB / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.425e-06/0.2844, allocations: 0 / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006044/0.285, allocations: 432.6 kB / 334 MB, free: 4.754 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.285, allocations: 9.531 kB / 334.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.313e-05/0.2851, allocations: 12.91 kB / 334.1 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.2854, allocations: 224.8 kB / 334.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-05/0.2855, allocations: 92.05 kB / 334.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.2855, allocations: 6.109 kB / 334.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004781/0.286, allocations: 177.6 kB / 334.6 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.286, allocations: 1.812 kB / 334.6 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.2861, allocations: 9.266 kB / 334.6 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.2861, allocations: 6.188 kB / 334.6 MB, free: 4.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.2866, allocations: 145.3 kB / 334.7 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.2878, allocations: 498.1 kB / 335.2 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006637/0.2885, allocations: 196.2 kB / 335.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.2885, allocations: 4.984 kB / 335.4 MB, free: 3.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.2885, allocations: 37.27 kB / 335.4 MB, free: 3.852 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 2.468e-06/0.2885, allocations: 0 / 335.4 MB, free: 3.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.001636/0.2902, allocations: 0.5945 MB / 336 MB, free: 3.508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.2902, allocations: 105.1 kB / 336.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.2904, allocations: 164.6 kB / 336.3 MB, free: 3.258 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.2905, allocations: 35.61 kB / 336.3 MB, free: 3.219 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.2905, allocations: 174.7 kB / 336.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.2906, allocations: 34.33 kB / 336.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-06/0.2906, allocations: 0 / 336.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.123e-05/0.2907, allocations: 318.1 kB / 336.8 MB, free: 2.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.2908, allocations: 40.62 kB / 336.9 MB, free: 2.699 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.291, allocations: 76.59 kB / 337 MB, free: 2.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.2912, allocations: 49.05 kB / 337 MB, free: 2.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.416e-06/0.2912, allocations: 1.188 kB / 337 MB, free: 2.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004025/0.2916, allocations: 145.1 kB / 337.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2917, allocations: 4.938 kB / 337.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.959e-06/0.2917, allocations: 1.125 kB / 337.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.2917, allocations: 2.141 kB / 337.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.292, allocations: 54.28 kB / 337.2 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.944e-06/0.292, allocations: 2.562 kB / 337.2 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.2921, allocations: 12.98 kB / 337.2 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.2922, allocations: 11.34 kB / 337.2 MB, free: 2.551 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001137/0.2923, allocations: 125 kB / 337.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.497e-05/0.2924, allocations: 18.95 kB / 337.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.2924, allocations: 14.72 kB / 337.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.275e-06/0.2924, allocations: 1.031 kB / 337.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.378e-06/0.2925, allocations: 0 / 337.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.147e-06/0.2925, allocations: 2.062 kB / 337.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.2935, allocations: 0.5139 MB / 337.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2935, allocations: 0 / 337.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.2938, allocations: 60.55 kB / 338 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.131e-06/0.2938, allocations: 1.125 kB / 338 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.2938, allocations: 5.469 kB / 338 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.2939, allocations: 0 / 338 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.502e-06/0.2939, allocations: 1.188 kB / 338 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008315/0.2947, allocations: 370.9 kB / 338.3 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.2948, allocations: 115 kB / 338.5 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.2949, allocations: 3.031 kB / 338.5 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003405/0.2952, allocations: 44.62 kB / 338.5 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.2953, allocations: 10.83 kB / 338.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.2953, allocations: 4.031 kB / 338.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001052/0.2954, allocations: 120.2 kB / 338.6 MB, free: 1.547 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.2955, allocations: 0 / 338.6 MB, free: 1.547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003648/0.2958, allocations: 23.88 kB / 338.7 MB, free: 1.543 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001109/0.296, allocations: 107.8 kB / 338.8 MB, free: 1.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004765/0.2964, allocations: 126.3 kB / 338.9 MB, free: 1.402 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.904e-06/0.2965, allocations: 128 / 338.9 MB, free: 1.402 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.2967, allocations: 77.89 kB / 339 MB, free: 1.375 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.2971, allocations: 22.14 kB / 339 MB, free: 1.363 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006807/0.2978, allocations: 348.2 kB / 339.3 MB, free: 1.082 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001469/0.2979, allocations: 0.7065 MB / 340 MB, free: 380 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.771e-05/0.298, allocations: 24.53 kB / 340 MB, free: 364 kB / 266.7 MB Notification: Performance of SimCode: time 1.526e-06/0.298, allocations: 0 / 340 MB, free: 364 kB / 266.7 MB Notification: Performance of Templates: time 0.003873/0.3019, allocations: 1.604 MB / 341.7 MB, free: 15.55 MB / 282.7 MB