Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.652/1.652, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003446/0.0003448, allocations: 12 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08257/0.08294, allocations: 38.77 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002038/0.08504, allocations: 1.175 MB / 273.7 MB, free: 11.04 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.08613, allocations: 483.4 kB / 274.2 MB, free: 10.57 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.582e-05/0.08619, allocations: 4 kB / 274.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.98e-05/0.0863, allocations: 15.92 kB / 274.2 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.7e-05/0.08639, allocations: 7.984 kB / 274.2 MB, free: 10.54 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.08658, allocations: 35.84 kB / 274.3 MB, free: 10.5 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.377e-05/0.08668, allocations: 23.97 kB / 274.3 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.0868, allocations: 15.98 kB / 274.3 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.08693, allocations: 23.91 kB / 274.3 MB, free: 10.44 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.524e-05/0.08701, allocations: 23.91 kB / 274.3 MB, free: 10.42 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.08704, allocations: 0 / 274.3 MB, free: 10.42 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.078e-05/0.08712, allocations: 23.88 kB / 274.4 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.407e-05/0.08715, allocations: 4 kB / 274.4 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.248e-05/0.08719, allocations: 29.7 kB / 274.4 MB, free: 10.36 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.08733, allocations: 47.91 kB / 274.4 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.08734, allocations: 0 / 274.4 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.891e-06/0.08736, allocations: 0 / 274.4 MB, free: 10.31 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.08737, allocations: 3.938 kB / 274.5 MB, free: 10.3 MB / 234.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.0007903/0.08817, allocations: 383.3 kB / 274.8 MB, free: 9.883 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.08823, allocations: 8.031 kB / 274.8 MB, free: 9.875 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.08827, allocations: 4 kB / 274.8 MB, free: 9.871 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.08844, allocations: 174.9 kB / 275 MB, free: 9.66 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.08846, allocations: 3.953 kB / 275 MB, free: 9.656 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.0885, allocations: 8 kB / 275 MB, free: 9.648 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.08894, allocations: 97.52 kB / 275.1 MB, free: 9.547 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.08896, allocations: 3.984 kB / 275.1 MB, free: 9.543 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.08899, allocations: 4 kB / 275.1 MB, free: 9.539 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.08901, allocations: 8 kB / 275.1 MB, free: 9.531 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005936/0.08961, allocations: 95.92 kB / 275.2 MB, free: 9.438 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005514/0.09017, allocations: 312.7 kB / 275.5 MB, free: 9.082 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.09061, allocations: 70.53 kB / 275.6 MB, free: 9.004 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.09065, allocations: 4 kB / 275.6 MB, free: 9 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.09069, allocations: 34.56 kB / 275.6 MB, free: 8.957 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 2.205e-06/0.0907, allocations: 0 / 275.6 MB, free: 8.957 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0009924/0.0917, allocations: 169.7 kB / 275.8 MB, free: 8.785 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.09175, allocations: 55.41 kB / 275.9 MB, free: 8.719 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.09189, allocations: 113.8 kB / 276 MB, free: 8.598 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.09194, allocations: 25.7 kB / 276 MB, free: 8.566 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.09204, allocations: 162.5 kB / 276.1 MB, free: 8.406 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.09208, allocations: 15.75 kB / 276.2 MB, free: 8.391 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-06/0.0921, allocations: 0 / 276.2 MB, free: 8.391 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.09226, allocations: 314.8 kB / 276.5 MB, free: 8.074 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.09255, allocations: 47.95 kB / 276.5 MB, free: 8.027 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.09285, allocations: 47.91 kB / 276.6 MB, free: 7.98 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.09315, allocations: 51.95 kB / 276.6 MB, free: 7.93 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.09316, allocations: 0 / 276.6 MB, free: 7.93 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0006305/0.0938, allocations: 121.6 kB / 276.7 MB, free: 7.805 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.09384, allocations: 5.094 kB / 276.7 MB, free: 7.801 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.09385, allocations: 3.938 kB / 276.7 MB, free: 7.797 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.09388, allocations: 4 kB / 276.7 MB, free: 7.793 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.09412, allocations: 27.97 kB / 276.8 MB, free: 7.766 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.09414, allocations: 0 / 276.8 MB, free: 7.766 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.0943, allocations: 15.98 kB / 276.8 MB, free: 7.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.09433, allocations: 0 / 276.8 MB, free: 7.75 MB / 234.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 (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 0.0001153/0.09445, allocations: 117.8 kB / 276.9 MB, free: 7.625 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.0945, allocations: 4 kB / 276.9 MB, free: 7.621 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007078/0.09521, allocations: 149.4 kB / 277.1 MB, free: 7.469 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.09523, allocations: 0 / 277.1 MB, free: 7.469 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.09524, allocations: 0 / 277.1 MB, free: 7.469 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.09531, allocations: 81.44 kB / 277.1 MB, free: 7.371 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.09534, allocations: 7.938 kB / 277.1 MB, free: 7.363 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.09554, allocations: 15.98 kB / 277.2 MB, free: 7.348 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.09561, allocations: 11.88 kB / 277.2 MB, free: 7.336 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007992/0.09642, allocations: 236.9 kB / 277.4 MB, free: 7.098 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000738/0.09718, allocations: 310.7 kB / 277.7 MB, free: 6.777 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003134/0.09751, allocations: 56.09 kB / 277.8 MB, free: 6.723 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.052e-05/0.09758, allocations: 91.56 kB / 277.8 MB, free: 6.633 MB / 234.7 MB Notification: Performance of Backend: time 7.91e-07/0.09759, allocations: 0 / 277.8 MB, free: 6.633 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.09824, allocations: 138.3 kB / 278 MB, free: 6.488 MB / 234.7 MB Notification: Performance of SimCode: time 0.0006623/0.09892, allocations: 0.6323 MB / 278.6 MB, free: 5.801 MB / 234.7 MB Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.im found! Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.re found! Error: Internal error GetVarIndexListByMapping: No Element for len.y found! Error: Internal error GetVarIndexListByMapping: No Element for phi.y found! Error: Internal error GetVarIndexListByMapping: No Element for len.duration found! Error: Internal error GetVarIndexListByMapping: No Element for len.height found! Error: Internal error GetVarIndexListByMapping: No Element for len.offset found! Error: Internal error GetVarIndexListByMapping: No Element for len.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for phi.duration found! Error: Internal error GetVarIndexListByMapping: No Element for phi.height found! Error: Internal error GetVarIndexListByMapping: No Element for phi.offset found! Error: Internal error GetVarIndexListByMapping: No Element for phi.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.u.im found! Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.u.re found! Error: Internal error GetVarIndexListByMapping: No Element for polarToComplex.len found! Error: Internal error GetVarIndexListByMapping: No Element for polarToComplex.phi found! Error: Internal error GetVarIndexListByMapping: No Element for polarToComplex.y.im found! Error: Internal error GetVarIndexListByMapping: No Element for polarToComplex.y.re found! Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.im found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: complexToReal.im (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.re found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: complexToReal.re (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for len.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: len.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: phi.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for len.duration found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: len.duration (no alias) initial: 1.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for len.height found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: len.height (no alias) initial: 1.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for len.offset found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: len.offset (no alias) initial: 1e-06 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for len.startTime found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: len.startTime (no alias) initial: 0.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.duration found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: phi.duration (no alias) initial: 1.0 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.height found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: phi.height (no alias) initial: 12.56637061435917 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.offset found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: phi.offset (no alias) initial: 0.0 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.startTime found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:7: phi.startTime (no alias) initial: 0.0 no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.im found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: complexToReal.im (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.re found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: complexToReal.re (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for len.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: len.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for phi.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: phi.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.im found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: complexToReal.im (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for complexToReal.re found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: complexToReal.re (no alias) initial: no arrCref index:(2) []