Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.0003711, allocations: 12 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0855/0.08589, allocations: 44.5 MB / 308.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001888/0.08783, allocations: 1.183 MB / 309.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.08889, allocations: 0.4959 MB / 310 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.877e-05/0.08898, allocations: 0 / 310 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.403e-05/0.08907, allocations: 7.938 kB / 310 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.024e-05/0.08916, allocations: 7.984 kB / 310 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.08934, allocations: 35.86 kB / 310.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.009e-05/0.08943, allocations: 31.94 kB / 310.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.9e-05/0.08954, allocations: 16 kB / 310.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.08968, allocations: 27.89 kB / 310.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.672e-05/0.08976, allocations: 23.86 kB / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.08978, allocations: 0 / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.08985, allocations: 12 kB / 310.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.08989, allocations: 11.98 kB / 310.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.127e-05/0.08993, allocations: 29.64 kB / 310.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.09006, allocations: 47.91 kB / 310.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.224e-06/0.09008, allocations: 0 / 310.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.055e-06/0.09009, allocations: 4 kB / 310.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.363e-06/0.09011, allocations: 0 / 310.3 MB, free: 15.09 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006794/0.09079, allocations: 379.5 kB / 310.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.09085, allocations: 8.031 kB / 310.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.0909, allocations: 15.84 kB / 310.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.09108, allocations: 170.9 kB / 310.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.09112, allocations: 4 kB / 310.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.09115, allocations: 11.98 kB / 310.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.0915, allocations: 89.64 kB / 310.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.514e-06/0.09153, allocations: 7.938 kB / 310.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.09155, allocations: 0 / 310.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.848e-06/0.09156, allocations: 4 kB / 310.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.09198, allocations: 95.92 kB / 311 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005657/0.09256, allocations: 308.7 kB / 311.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.09291, allocations: 86.53 kB / 311.4 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.09296, allocations: 7.969 kB / 311.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.093, allocations: 34.59 kB / 311.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 2.574e-06/0.09301, allocations: 0 / 311.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0007302/0.09375, allocations: 185.6 kB / 311.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.09382, allocations: 59.39 kB / 311.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.09394, allocations: 109.8 kB / 311.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.09398, allocations: 25.7 kB / 311.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.642e-05/0.09408, allocations: 158.6 kB / 312 MB, free: 13.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.09413, allocations: 15.66 kB / 312 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.459e-06/0.09415, allocations: 8 kB / 312 MB, free: 13.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.09432, allocations: 310.8 kB / 312.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.09454, allocations: 47.95 kB / 312.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.09475, allocations: 55.89 kB / 312.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.09496, allocations: 47.97 kB / 312.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.037e-06/0.09498, allocations: 4 kB / 312.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004689/0.09546, allocations: 126 kB / 312.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.09549, allocations: 4 kB / 312.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.293e-06/0.09551, allocations: 3.984 kB / 312.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.09554, allocations: 4 kB / 312.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.09574, allocations: 31.98 kB / 312.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.309e-06/0.09576, allocations: 0 / 312.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.09588, allocations: 23.98 kB / 312.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.837e-06/0.09591, allocations: 0 / 312.7 MB, free: 12.48 MB / 266.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.000129/0.09604, allocations: 117.8 kB / 312.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.58e-05/0.0961, allocations: 11.92 kB / 312.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005474/0.09666, allocations: 149.9 kB / 312.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.119e-06/0.09669, allocations: 4 kB / 312.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.967e-06/0.0967, allocations: 3.953 kB / 312.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.925e-06/0.09671, allocations: 0 / 312.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002764/0.097, allocations: 197.5 kB / 313.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.668e-06/0.09702, allocations: 0 / 313.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.09719, allocations: 23.98 kB / 313.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.09722, allocations: 4 kB / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.09724, allocations: 0 / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.606e-06/0.09725, allocations: 0 / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.611e-06/0.09726, allocations: 0 / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005474/0.09782, allocations: 251.3 kB / 313.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.084e-05/0.0979, allocations: 81.11 kB / 313.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.09793, allocations: 0 / 313.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.09809, allocations: 19.97 kB / 313.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.09816, allocations: 8 kB / 313.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.945e-06/0.09818, allocations: 0 / 313.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.125e-05/0.09826, allocations: 91.27 kB / 313.6 MB, free: 11.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.09828, allocations: 4 kB / 313.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000316/0.0986, allocations: 11.95 kB / 313.6 MB, free: 11.42 MB / 266.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001515/0.09876, allocations: 99.25 kB / 313.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004713/0.09925, allocations: 111.8 kB / 313.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.682e-06/0.09927, allocations: 4 kB / 313.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.0995, allocations: 55.97 kB / 313.9 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.09975, allocations: 7.984 kB / 313.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004709/0.1002, allocations: 206.4 kB / 314.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.1007, allocations: 0.6926 MB / 314.8 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.1007, allocations: 7.438 kB / 314.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.987e-06/0.1007, allocations: 0 / 314.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of Templates: time 0.002903/0.1037, allocations: 0.9425 MB / 315.7 MB, free: 9.242 MB / 266.7 MB