Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.057/2.057, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004824/0.0004827, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.0993, allocations: 44.51 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002112/0.1015, allocations: 1.175 MB / 310.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1026, allocations: 0.496 MB / 310.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.1027, allocations: 0 / 310.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.084e-05/0.1028, allocations: 7.938 kB / 310.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.246e-05/0.1029, allocations: 7.969 kB / 310.7 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.1031, allocations: 35.84 kB / 310.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.451e-05/0.1032, allocations: 31.97 kB / 310.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.1033, allocations: 19.98 kB / 310.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.1035, allocations: 23.91 kB / 310.8 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.227e-05/0.1036, allocations: 19.86 kB / 310.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.1036, allocations: 4 kB / 310.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.338e-05/0.1037, allocations: 15.98 kB / 310.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.1037, allocations: 0 / 310.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.027e-05/0.1038, allocations: 37.64 kB / 310.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.1039, allocations: 47.91 kB / 310.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.1039, allocations: 0 / 310.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1039, allocations: 0 / 310.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1039, allocations: 0 / 310.9 MB, free: 15.11 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.0008164/0.1048, allocations: 379.4 kB / 311.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1048, allocations: 8.031 kB / 311.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.1049, allocations: 7.906 kB / 311.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.105, allocations: 182.8 kB / 311.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1051, allocations: 7.938 kB / 311.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.1051, allocations: 8 kB / 311.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.1056, allocations: 93.64 kB / 311.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1056, allocations: 0 / 311.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.1056, allocations: 0 / 311.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.1056, allocations: 4 kB / 311.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006564/0.1063, allocations: 99.92 kB / 311.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000618/0.1069, allocations: 316.6 kB / 312 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.1074, allocations: 82.53 kB / 312.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1074, allocations: 0 / 312.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.1075, allocations: 38.59 kB / 312.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.673e-06/0.1075, allocations: 0 / 312.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.001022/0.1085, allocations: 189.6 kB / 312.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.1085, allocations: 51.41 kB / 312.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.1087, allocations: 109.8 kB / 312.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1087, allocations: 29.7 kB / 312.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.349e-05/0.1088, allocations: 154.6 kB / 312.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.1088, allocations: 19.66 kB / 312.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.1089, allocations: 0 / 312.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.109, allocations: 322.8 kB / 313 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.1093, allocations: 39.97 kB / 313 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.1096, allocations: 55.95 kB / 313.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.1099, allocations: 43.91 kB / 313.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1099, allocations: 0 / 313.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006459/0.1106, allocations: 134 kB / 313.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1106, allocations: 8.375 kB / 313.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1106, allocations: 8 kB / 313.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1107, allocations: 0 / 313.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.1109, allocations: 19.98 kB / 313.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1109, allocations: 11.89 kB / 313.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.1111, allocations: 15.98 kB / 313.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.1111, allocations: 11.98 kB / 313.3 MB, free: 12.5 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.0001064/0.1112, allocations: 109.8 kB / 313.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.1113, allocations: 3.984 kB / 313.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.112, allocations: 161.4 kB / 313.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.112, allocations: 3.984 kB / 313.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.112, allocations: 0 / 313.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.1121, allocations: 85 kB / 313.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.1122, allocations: 8 kB / 313.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.1124, allocations: 19.98 kB / 313.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.1124, allocations: 3.984 kB / 313.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008265/0.1133, allocations: 244.8 kB / 313.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007639/0.114, allocations: 318.6 kB / 314.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000323/0.1144, allocations: 63.95 kB / 314.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.1145, allocations: 83.28 kB / 314.4 MB, free: 11.35 MB / 266.7 MB Notification: Performance of Backend: time 8.41e-07/0.1145, allocations: 0 / 314.4 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.1151, allocations: 134.4 kB / 314.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of SimCode: time 0.0006609/0.1158, allocations: 0.6285 MB / 315.1 MB, free: 10.53 MB / 266.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 polarToComplex.y.im 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.useConjugateInput 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.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 polarToComplex.y.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:4: polarToComplex.y.im (no alias) initial: no arrCref index:(5) [] 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:(6) [] 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:(7) [] 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:(8) [] 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:(9) [] 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:(10) [] 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:(11) [] 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:(12) [] 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:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for polarToComplex.y.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:4: polarToComplex.y.im (no alias) initial: no arrCref index:(5) [] 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.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 complexToReal.useConjugateInput 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.useConjugateInput (no alias) initial: false no arrCref index:(19) []