Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003472, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1017, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00152/0.1033, allocations: 0.8986 MB / 309.9 MB, free: 160 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.1072, allocations: 1.777 MB / 311.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.061e-05/0.1073, allocations: 0 / 311.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.832e-05/0.1073, allocations: 0 / 311.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.1088, allocations: 287.2 kB / 311.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.9e-05/0.1088, allocations: 4 kB / 311.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.705e-05/0.1089, allocations: 15.98 kB / 311.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.885e-05/0.1089, allocations: 3.938 kB / 311.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.358e-05/0.109, allocations: 4 kB / 312 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.1091, allocations: 11.97 kB / 312 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.718e-06/0.1091, allocations: 0 / 312 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008804/0.11, allocations: 339.6 kB / 312.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.312e-05/0.1101, allocations: 4 kB / 312.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.1101, allocations: 25.7 kB / 312.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005447/0.1107, allocations: 223.6 kB / 312.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.1107, allocations: 0 / 312.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1107, allocations: 4 kB / 312.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1107, allocations: 0 / 312.5 MB, free: 13.46 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005039/0.1112, allocations: 395.3 kB / 312.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.1113, allocations: 8.031 kB / 312.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.538e-05/0.1114, allocations: 75.28 kB / 313 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1116, allocations: 258.2 kB / 313.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-05/0.1117, allocations: 150.6 kB / 313.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.263e-05/0.1118, allocations: 154.6 kB / 313.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.272e-05/0.1119, allocations: 112.9 kB / 313.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.1119, allocations: 79.28 kB / 313.8 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.501e-05/0.112, allocations: 150.6 kB / 313.9 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-05/0.1121, allocations: 150.6 kB / 314 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.339e-05/0.1122, allocations: 150.6 kB / 314.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.1125, allocations: 457.9 kB / 314.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.1127, allocations: 169.1 kB / 314.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.1127, allocations: 75.28 kB / 314.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.1129, allocations: 51.41 kB / 314.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 4.268e-06/0.1129, allocations: 0 / 314.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001661/0.1131, allocations: 33.64 kB / 315 MB, free: 10.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.1132, allocations: 55.34 kB / 315 MB, free: 10.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.1133, allocations: 105.8 kB / 315.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.1133, allocations: 25.7 kB / 315.1 MB, free: 10.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.164e-05/0.1134, allocations: 150.6 kB / 315.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.1134, allocations: 3.984 kB / 315.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.1134, allocations: 4.125 kB / 315.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1136, allocations: 314.8 kB / 315.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.1136, allocations: 0 / 315.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-06/0.1136, allocations: 0 / 315.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.31e-05/0.1137, allocations: 7.953 kB / 315.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1137, allocations: 0 / 315.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.971e-05/0.1138, allocations: 37.64 kB / 315.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1138, allocations: 4 kB / 315.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1138, allocations: 4.094 kB / 315.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.1138, allocations: 3.984 kB / 315.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.361e-05/0.1139, allocations: 0 / 315.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1139, allocations: 0 / 315.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.165e-05/0.1139, allocations: 4 kB / 315.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.1139, allocations: 0 / 315.7 MB, free: 10.11 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 9.326e-05/0.114, allocations: 109.8 kB / 315.8 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.1141, allocations: 0 / 315.8 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.1141, allocations: 7.125 kB / 315.8 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1141, allocations: 4 kB / 315.8 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1141, allocations: 0 / 315.8 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.045e-05/0.1142, allocations: 89 kB / 315.9 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.1142, allocations: 3.938 kB / 315.9 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.289e-05/0.1143, allocations: 8 kB / 315.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.1143, allocations: 0 / 315.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.115e-05/0.1144, allocations: 116.9 kB / 316 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001409/0.1145, allocations: 202.9 kB / 316.2 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.886e-05/0.1146, allocations: 4 kB / 316.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.531e-05/0.1146, allocations: 91.44 kB / 316.3 MB, free: 9.434 MB / 266.7 MB Notification: Performance of Backend: time 6.61e-07/0.1146, allocations: 0 / 316.3 MB, free: 9.434 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.1162, allocations: 451.6 kB / 316.7 MB, free: 9.043 MB / 266.7 MB Notification: Performance of SimCode: time 0.0005344/0.1168, allocations: 0.5972 MB / 317.3 MB, free: 8.395 MB / 266.7 MB Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! 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 $whenCondition1 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: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(4) [] 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.2/Resources/Data/Utilities/Examples_readRealParameters.txt" no arrCref index:(5) []