Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStrings.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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005785/0.0005785, allocations: 8 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4173/0.4179, allocations: 54.86 MB / 369.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0007021/0.4187, allocations: 216.4 kB / 370 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.4219, allocations: 1.208 MB / 371.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.422, allocations: 0 / 371.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.422, allocations: 0 / 371.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.422, allocations: 0 / 371.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.424, allocations: 434.9 kB / 371.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.596e-05/0.424, allocations: 0 / 371.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.856e-05/0.4241, allocations: 7.984 kB / 371.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.947e-05/0.4242, allocations: 3.938 kB / 371.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.5e-05/0.4242, allocations: 0 / 371.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-06/0.4242, allocations: 4 kB / 371.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002147/0.4264, allocations: 0.7375 MB / 372.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.203e-06/0.4264, allocations: 0 / 372.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.4265, allocations: 25.7 kB / 372.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009651/0.4274, allocations: 359.4 kB / 372.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4275, allocations: 0 / 372.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4275, allocations: 0 / 372.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.4275, allocations: 4 kB / 372.8 MB, free: 9.789 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.0005799/0.4281, allocations: 457 kB / 373.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.4281, allocations: 8.031 kB / 373.2 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.4282, allocations: 7.953 kB / 373.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.4283, allocations: 163.1 kB / 373.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.4283, allocations: 0 / 373.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.4284, allocations: 0 / 373.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.4285, allocations: 37.64 kB / 373.4 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.4285, allocations: 0 / 373.4 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.4285, allocations: 4 kB / 373.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.4285, allocations: 0 / 373.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.037e-05/0.4285, allocations: 3.953 kB / 373.4 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.4287, allocations: 149.7 kB / 373.6 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.572e-05/0.4288, allocations: 14.58 kB / 373.6 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.4288, allocations: 3.938 kB / 373.6 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.4288, allocations: 60.27 kB / 373.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.613e-06/0.4288, allocations: 4 kB / 373.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.429, allocations: 71.3 kB / 373.7 MB, free: 8.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.4291, allocations: 81.11 kB / 373.8 MB, free: 8.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.605e-05/0.4292, allocations: 89.86 kB / 373.9 MB, free: 8.445 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.4292, allocations: 25.7 kB / 373.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.4293, allocations: 154.5 kB / 374.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.4293, allocations: 0 / 374.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-06/0.4293, allocations: 0 / 374.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4294, allocations: 322.9 kB / 374.4 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.014e-05/0.4294, allocations: 0 / 374.4 MB, free: 7.938 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.4295, allocations: 4 kB / 374.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.991e-05/0.4295, allocations: 25.7 kB / 374.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4295, allocations: 0 / 374.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.169e-05/0.4296, allocations: 67.33 kB / 374.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.4297, allocations: 29.7 kB / 374.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.4297, allocations: 0 / 374.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.4297, allocations: 4 kB / 374.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.4297, allocations: 4.094 kB / 374.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.4297, allocations: 0 / 374.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.4297, allocations: 0 / 374.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.4298, allocations: 0 / 374.5 MB, free: 7.781 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.0001058/0.4299, allocations: 147.5 kB / 374.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-06/0.4299, allocations: 0 / 374.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.294e-05/0.4299, allocations: 7.109 kB / 374.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4299, allocations: 0 / 374.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4299, allocations: 0 / 374.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.43, allocations: 81.11 kB / 374.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.43, allocations: 4 kB / 374.8 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.43, allocations: 0 / 374.8 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.4301, allocations: 3.953 kB / 374.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001413/0.4302, allocations: 198 kB / 375 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001737/0.4304, allocations: 240.5 kB / 375.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.184e-05/0.4304, allocations: 8.062 kB / 375.2 MB, free: 7.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.026e-05/0.4305, allocations: 75.28 kB / 375.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of Backend: time 4.5e-07/0.4305, allocations: 3.938 kB / 375.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.4325, allocations: 0.6264 MB / 375.9 MB, free: 6.375 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004269/0.433, allocations: 0.6181 MB / 376.5 MB, free: 5.688 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) []