Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadModel(ModelicaTest): time 2.469/2.469, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004377, allocations: 16 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3461, allocations: 54.87 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006787/0.3469, allocations: 208.5 kB / 370 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008574/0.3477, allocations: 281.4 kB / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.464e-05/0.3478, allocations: 0 / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.699e-06/0.3478, allocations: 0 / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.3478, allocations: 0 / 370.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.3483, allocations: 71.78 kB / 370.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.94e-05/0.3484, allocations: 4 kB / 370.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.3484, allocations: 4 kB / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.3485, allocations: 3.984 kB / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.181e-05/0.3485, allocations: 0 / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.242e-06/0.3485, allocations: 0 / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002211/0.3487, allocations: 91.84 kB / 370.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.133e-06/0.3488, allocations: 0 / 370.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.721e-05/0.3488, allocations: 25.7 kB / 370.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.349, allocations: 59.84 kB / 370.5 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.349, allocations: 0 / 370.5 MB, free: 10 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.689e-06/0.349, allocations: 0 / 370.5 MB, free: 10 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.349, allocations: 7.938 kB / 370.6 MB, free: 9.992 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003762/0.3494, allocations: 357.1 kB / 370.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3494, allocations: 11.97 kB / 370.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.3495, allocations: 7.953 kB / 370.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3496, allocations: 159.1 kB / 371.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.3496, allocations: 0 / 371.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.3497, allocations: 0 / 371.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.262e-05/0.3498, allocations: 29.7 kB / 371.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3498, allocations: 0 / 371.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3498, allocations: 4 kB / 371.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.3498, allocations: 0 / 371.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.393e-05/0.3498, allocations: 7.938 kB / 371.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.35, allocations: 153.7 kB / 371.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.056e-05/0.3501, allocations: 18.52 kB / 371.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.3501, allocations: 0 / 371.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.807e-05/0.3502, allocations: 56.27 kB / 371.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.3502, allocations: 8.094 kB / 371.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002385/0.3504, allocations: 71.28 kB / 371.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.3505, allocations: 81.11 kB / 371.5 MB, free: 8.844 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.689e-05/0.3506, allocations: 89.86 kB / 371.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.3506, allocations: 25.7 kB / 371.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.909e-05/0.3507, allocations: 154.5 kB / 371.8 MB, free: 8.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.3507, allocations: 0 / 371.8 MB, free: 8.562 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-06/0.3507, allocations: 0 / 371.8 MB, free: 8.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3508, allocations: 318.9 kB / 372.1 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.3509, allocations: 7.938 kB / 372.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.3509, allocations: 0 / 372.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.301e-05/0.3509, allocations: 29.69 kB / 372.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3509, allocations: 0 / 372.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.396e-05/0.351, allocations: 63.41 kB / 372.2 MB, free: 8.125 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.3511, allocations: 29.7 kB / 372.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3511, allocations: 4 kB / 372.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3511, allocations: 0 / 372.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.3511, allocations: 4.094 kB / 372.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3511, allocations: 0 / 372.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.3512, allocations: 3.984 kB / 372.2 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.3512, allocations: 0 / 372.2 MB, free: 8.078 MB / 298.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001037/0.3513, allocations: 139.5 kB / 372.3 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.3513, allocations: 3.938 kB / 372.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.3513, allocations: 7.062 kB / 372.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3514, allocations: 0 / 372.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3514, allocations: 0 / 372.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.3514, allocations: 81.11 kB / 372.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.3515, allocations: 4 kB / 372.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.588e-05/0.3515, allocations: 3.984 kB / 372.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.079e-05/0.3515, allocations: 7.953 kB / 372.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001466/0.3517, allocations: 186.1 kB / 372.6 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001721/0.3518, allocations: 240.5 kB / 372.9 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.582e-05/0.3519, allocations: 8.062 kB / 372.9 MB, free: 7.332 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.495e-05/0.3519, allocations: 79.28 kB / 373 MB, free: 7.254 MB / 298.7 MB Notification: Performance of Backend: time 6.91e-07/0.3519, allocations: 0 / 373 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009231/0.3529, allocations: 314.2 kB / 373.3 MB, free: 6.98 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004331/0.3533, allocations: 0.6072 MB / 373.9 MB, free: 6.305 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result 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: result (no alias) initial: no arrCref index:(1) []