Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.255e-05, allocations: 8 kB / 228.8 MB, free: 15.35 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2038, allocations: 38.77 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0985/0.3023, allocations: 65.98 MB / 333.6 MB, free: 7.379 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.3026, allocations: 63.97 kB / 333.6 MB, free: 7.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004628/0.3072, allocations: 1.224 MB / 334.8 MB, free: 6.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.319e-06/0.3073, allocations: 4 kB / 334.8 MB, free: 6.086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.56e-06/0.3073, allocations: 3.938 kB / 334.9 MB, free: 6.082 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005127/0.3078, allocations: 370.4 kB / 335.2 MB, free: 5.676 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3079, allocations: 8.031 kB / 335.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.809e-05/0.3079, allocations: 11.91 kB / 335.2 MB, free: 5.656 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3081, allocations: 171 kB / 335.4 MB, free: 5.449 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.3081, allocations: 4 kB / 335.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.3081, allocations: 4 kB / 335.4 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.3083, allocations: 65.62 kB / 335.5 MB, free: 5.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3083, allocations: 0 / 335.5 MB, free: 5.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3083, allocations: 3.938 kB / 335.5 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.615e-06/0.3084, allocations: 4 kB / 335.5 MB, free: 5.363 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000111/0.3085, allocations: 31.94 kB / 335.5 MB, free: 5.332 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.309, allocations: 304.7 kB / 335.8 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.3091, allocations: 50.59 kB / 335.9 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.628e-05/0.3092, allocations: 16.86 kB / 335.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3092, allocations: 0 / 335.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.3093, allocations: 38.56 kB / 335.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.77e-06/0.3093, allocations: 0 / 335.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002148/0.3095, allocations: 61.69 kB / 336 MB, free: 4.793 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.3096, allocations: 51.41 kB / 336 MB, free: 4.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.264e-05/0.3097, allocations: 97 kB / 336.1 MB, free: 4.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.3097, allocations: 25.7 kB / 336.1 MB, free: 4.598 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.158e-05/0.3098, allocations: 166.5 kB / 336.3 MB, free: 4.434 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3098, allocations: 7.812 kB / 336.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-06/0.3099, allocations: 0 / 336.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.31, allocations: 318.8 kB / 336.6 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.456e-05/0.3101, allocations: 15.94 kB / 336.6 MB, free: 4.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.028e-05/0.3101, allocations: 12 kB / 336.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.783e-05/0.3102, allocations: 20.06 kB / 336.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.171e-06/0.3102, allocations: 0 / 336.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001447/0.3104, allocations: 57.69 kB / 336.7 MB, free: 3.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3104, allocations: 4 kB / 336.7 MB, free: 3.992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.507e-06/0.3104, allocations: 0 / 336.7 MB, free: 3.992 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3104, allocations: 0 / 336.7 MB, free: 3.992 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3106, allocations: 27.98 kB / 336.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3106, allocations: 0 / 336.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.3108, allocations: 23.91 kB / 336.8 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-06/0.3108, allocations: 320 / 336.8 MB, free: 3.941 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.067e-05/0.3109, allocations: 112.9 kB / 336.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.3109, allocations: 11.91 kB / 336.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002009/0.3111, allocations: 77.7 kB / 337 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.32e-06/0.3112, allocations: 0 / 337 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.962e-06/0.3112, allocations: 0 / 337 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.499e-06/0.3112, allocations: 0 / 337 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002441/0.3114, allocations: 177.6 kB / 337.2 MB, free: 3.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.715e-06/0.3115, allocations: 3.953 kB / 337.2 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.3116, allocations: 23.98 kB / 337.2 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.539e-06/0.3117, allocations: 4 kB / 337.2 MB, free: 3.469 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.3117, allocations: 12.05 kB / 337.2 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.057e-06/0.3117, allocations: 4 kB / 337.2 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.594e-06/0.3117, allocations: 7.875 kB / 337.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002112/0.3119, allocations: 159.5 kB / 337.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.453e-05/0.312, allocations: 85.06 kB / 337.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.312, allocations: 0 / 337.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.3122, allocations: 23.98 kB / 337.5 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.3123, allocations: 3.984 kB / 337.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.228e-06/0.3123, allocations: 4 kB / 337.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.61e-05/0.3124, allocations: 91.27 kB / 337.6 MB, free: 3.051 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.3124, allocations: 0 / 337.6 MB, free: 3.051 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003107/0.3127, allocations: 15.91 kB / 337.6 MB, free: 3.035 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001565/0.3129, allocations: 115.2 kB / 337.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.313, allocations: 35.94 kB / 337.7 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.348e-06/0.313, allocations: 0 / 337.7 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.809e-05/0.3131, allocations: 20 kB / 337.8 MB, free: 2.859 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.3133, allocations: 9.031 kB / 337.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.3136, allocations: 126.6 kB / 337.9 MB, free: 2.695 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.314, allocations: 0.6965 MB / 338.6 MB, free: 1.973 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.3141, allocations: 7.438 kB / 338.6 MB, free: 1.965 MB / 282.7 MB Notification: Performance of SimCode: time 1.399e-06/0.3141, allocations: 0 / 338.6 MB, free: 1.965 MB / 282.7 MB Notification: Performance of Templates: time 0.002624/0.3167, allocations: 0.8924 MB / 339.5 MB, free: 1.082 MB / 282.7 MB