Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadModel(Modelica): time 1.733/1.733, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004573/0.0004575, allocations: 8 kB / 233.8 MB, free: 3.09 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 38.77 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001482/0.1141, allocations: 0.9024 MB / 273.4 MB, free: 11.32 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003853/0.118, allocations: 1.734 MB / 275.2 MB, free: 9.578 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.873e-05/0.1181, allocations: 0 / 275.2 MB, free: 9.578 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.1181, allocations: 4 kB / 275.2 MB, free: 9.574 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.1195, allocations: 295.1 kB / 275.5 MB, free: 9.285 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.806e-06/0.1195, allocations: 0 / 275.5 MB, free: 9.285 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 3.802e-05/0.1196, allocations: 7.984 kB / 275.5 MB, free: 9.277 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.1196, allocations: 0 / 275.5 MB, free: 9.277 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.64e-05/0.1196, allocations: 4 kB / 275.5 MB, free: 9.273 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.1198, allocations: 11.92 kB / 275.5 MB, free: 9.262 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.935e-06/0.1198, allocations: 0 / 275.5 MB, free: 9.262 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008288/0.1206, allocations: 343.6 kB / 275.8 MB, free: 8.926 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.17e-06/0.1206, allocations: 4 kB / 275.8 MB, free: 8.922 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.1207, allocations: 25.7 kB / 275.9 MB, free: 8.891 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.1212, allocations: 215.6 kB / 276.1 MB, free: 8.68 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1212, allocations: 3.938 kB / 276.1 MB, free: 8.676 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1212, allocations: 4 kB / 276.1 MB, free: 8.672 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.1212, allocations: 0 / 276.1 MB, free: 8.672 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004845/0.1217, allocations: 403.2 kB / 276.5 MB, free: 8.23 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1218, allocations: 8.031 kB / 276.5 MB, free: 8.223 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.015e-05/0.1218, allocations: 79.28 kB / 276.6 MB, free: 8.145 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.1221, allocations: 238.4 kB / 276.8 MB, free: 7.871 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.744e-05/0.1221, allocations: 154.5 kB / 276.9 MB, free: 7.719 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.187e-05/0.1222, allocations: 150.6 kB / 277.1 MB, free: 7.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.215e-05/0.1223, allocations: 109 kB / 277.2 MB, free: 7.457 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.1223, allocations: 75.28 kB / 277.3 MB, free: 7.383 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.437e-05/0.1224, allocations: 154.6 kB / 277.4 MB, free: 7.23 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.015e-05/0.1225, allocations: 150.6 kB / 277.6 MB, free: 7.082 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.078e-05/0.1226, allocations: 162.4 kB / 277.7 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.1229, allocations: 445.9 kB / 278.2 MB, free: 6.438 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.596e-05/0.123, allocations: 169.1 kB / 278.3 MB, free: 6.262 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.474e-05/0.1231, allocations: 87.27 kB / 278.4 MB, free: 6.176 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.661e-05/0.1232, allocations: 109.8 kB / 278.5 MB, free: 6.059 MB / 234.7 MB Notification: Performance of pre-optimization done (n=0): time 1.924e-06/0.1232, allocations: 3.938 kB / 278.5 MB, free: 6.055 MB / 234.7 MB Notification: Performance of matching and sorting (n=0): time 8.046e-05/0.1233, allocations: 29.69 kB / 278.6 MB, free: 6.02 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.1233, allocations: 51.41 kB / 278.6 MB, free: 5.957 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.1234, allocations: 105.8 kB / 278.7 MB, free: 5.844 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1235, allocations: 29.7 kB / 278.7 MB, free: 5.809 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.1236, allocations: 150.6 kB / 278.9 MB, free: 5.66 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-06/0.1236, allocations: 0 / 278.9 MB, free: 5.66 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.11e-07/0.1236, allocations: 0 / 278.9 MB, free: 5.66 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1238, allocations: 314.8 kB / 279.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.007e-06/0.1238, allocations: 0 / 279.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.176e-06/0.1238, allocations: 0 / 279.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.892e-05/0.1239, allocations: 79.28 kB / 279.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.312e-05/0.1239, allocations: 79.28 kB / 279.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 9.189e-05/0.124, allocations: 33.72 kB / 279.4 MB, free: 5.148 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.1241, allocations: 88.33 kB / 279.5 MB, free: 5.062 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.343e-05/0.1241, allocations: 75.28 kB / 279.5 MB, free: 4.988 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.258e-05/0.1242, allocations: 154.5 kB / 279.7 MB, free: 4.836 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.398e-05/0.1243, allocations: 79.27 kB / 279.8 MB, free: 4.758 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.642e-05/0.1244, allocations: 150.6 kB / 279.9 MB, free: 4.609 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1245, allocations: 87.22 kB / 280 MB, free: 4.523 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.1246, allocations: 83.28 kB / 280.1 MB, free: 4.441 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 (0): * Single equations (assignments): 0 * 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.0001617/0.1247, allocations: 256.4 kB / 280.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.1248, allocations: 108.9 kB / 280.4 MB, free: 4.066 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.405e-05/0.1249, allocations: 112 kB / 280.5 MB, free: 3.949 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.262e-05/0.125, allocations: 180.3 kB / 280.7 MB, free: 3.766 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.055e-05/0.125, allocations: 108.9 kB / 280.8 MB, free: 3.652 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.1252, allocations: 186 kB / 281 MB, free: 3.445 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.565e-05/0.1253, allocations: 184.2 kB / 281.2 MB, free: 3.258 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.86e-05/0.1254, allocations: 101 kB / 281.3 MB, free: 3.152 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.1255, allocations: 184.3 kB / 281.5 MB, free: 2.965 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001099/0.1256, allocations: 263.5 kB / 281.7 MB, free: 2.699 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000221/0.1258, allocations: 383 kB / 282.1 MB, free: 2.301 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.033e-05/0.1259, allocations: 104.9 kB / 282.2 MB, free: 2.191 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.085e-05/0.126, allocations: 83.28 kB / 282.3 MB, free: 2.109 MB / 234.7 MB Notification: Performance of Backend: time 7.71e-07/0.126, allocations: 0 / 282.3 MB, free: 2.109 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003305/0.1293, allocations: 451 kB / 282.7 MB, free: 1.715 MB / 234.7 MB Notification: Performance of SimCode: time 0.0009885/0.1304, allocations: 1.027 MB / 283.7 MB, free: 0.6289 MB / 234.7 MB Error: Internal error GetVarIndexListByMapping: No Element for J found! Error: Internal error GetVarIndexListByMapping: No Element for phi_rel0 found! Error: Internal error GetVarIndexListByMapping: No Element for w_rel0 found! Error: Internal error GetVarIndexListByMapping: No Element for file found! Error: Internal error GetVarIndexListByMapping: No Element for J 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: J (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for phi_rel0 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: phi_rel0 (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for w_rel0 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: w_rel0 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for file 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: file (no alias) initial: "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Utilities/Examples_readRealParameters.txt" no arrCref index:(4) []