Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadModel(ModelicaTest): time 2.274/2.274, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004284, allocations: 12 kB / 314.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3436, allocations: 54.86 MB / 369.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006264/0.3443, allocations: 212.4 kB / 370 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000858/0.3452, allocations: 302 kB / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.651e-05/0.3452, allocations: 0 / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.047e-05/0.3452, allocations: 0 / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.3452, allocations: 0 / 370.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003788/0.3456, allocations: 71.75 kB / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.983e-05/0.3457, allocations: 0 / 370.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.3457, allocations: 11.92 kB / 370.4 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.802e-05/0.3458, allocations: 7.984 kB / 370.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.317e-05/0.3458, allocations: 0 / 370.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-06/0.3458, allocations: 0 / 370.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.3461, allocations: 91.86 kB / 370.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-06/0.3461, allocations: 0 / 370.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.3461, allocations: 29.7 kB / 370.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.3463, allocations: 63.91 kB / 370.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.3463, allocations: 0 / 370.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3463, allocations: 0 / 370.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.3463, allocations: 0 / 370.6 MB, free: 9.973 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.0003426/0.3467, allocations: 361.1 kB / 370.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3467, allocations: 8.031 kB / 370.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.028e-05/0.3468, allocations: 7.953 kB / 370.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.3469, allocations: 167 kB / 371.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.3469, allocations: 3.938 kB / 371.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.347, allocations: 4 kB / 371.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.412e-05/0.3471, allocations: 29.7 kB / 371.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3471, allocations: 0 / 371.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.3471, allocations: 0 / 371.1 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3471, allocations: 4 kB / 371.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.141e-05/0.3471, allocations: 3.953 kB / 371.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.3473, allocations: 153.7 kB / 371.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.377e-05/0.3474, allocations: 18.52 kB / 371.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.3474, allocations: 0 / 371.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.3475, allocations: 60.36 kB / 371.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.3475, allocations: 0 / 371.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/0.3477, allocations: 71.3 kB / 371.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3477, allocations: 81.11 kB / 371.5 MB, free: 8.816 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.642e-05/0.3478, allocations: 89.86 kB / 371.6 MB, free: 8.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.3478, allocations: 25.7 kB / 371.6 MB, free: 8.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.3479, allocations: 154.6 kB / 371.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.3479, allocations: 0 / 371.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.3479, allocations: 0 / 371.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.348, allocations: 314.8 kB / 372.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.786e-05/0.3481, allocations: 12.06 kB / 372.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.3481, allocations: 0 / 372.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.104e-05/0.3481, allocations: 25.7 kB / 372.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3481, allocations: 0 / 372.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.12e-05/0.3482, allocations: 67.39 kB / 372.2 MB, free: 8.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.3483, allocations: 29.7 kB / 372.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3483, allocations: 4 kB / 372.2 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.3483, allocations: 3.938 kB / 372.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.704e-06/0.3484, allocations: 0 / 372.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3484, allocations: 4.094 kB / 372.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.92e-05/0.3484, allocations: 0 / 372.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.3484, allocations: 0 / 372.2 MB, free: 8.051 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.000102/0.3485, allocations: 143.5 kB / 372.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-06/0.3485, allocations: 0 / 372.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.118e-05/0.3486, allocations: 3.125 kB / 372.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3486, allocations: 3.984 kB / 372.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3486, allocations: 3.938 kB / 372.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.654e-05/0.3486, allocations: 81.11 kB / 372.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.3487, allocations: 7.938 kB / 372.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.3487, allocations: 0 / 372.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.962e-05/0.3487, allocations: 3.953 kB / 372.5 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000148/0.3489, allocations: 198.1 kB / 372.7 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001691/0.3491, allocations: 232.5 kB / 372.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.477e-05/0.3491, allocations: 7.938 kB / 372.9 MB, free: 7.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.129e-05/0.3491, allocations: 79.34 kB / 373 MB, free: 7.223 MB / 298.7 MB Notification: Performance of Backend: time 6.51e-07/0.3491, allocations: 0 / 373 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007812/0.3499, allocations: 256.8 kB / 373.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004872/0.3504, allocations: 0.6111 MB / 373.9 MB, free: 6.309 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) []