Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadModel(ModelicaTest): time 2.443/2.443, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004319, allocations: 12 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3687, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0007346/0.3695, allocations: 212.5 kB / 370 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006481/0.3702, allocations: 189.7 kB / 370.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.027e-05/0.3702, allocations: 3.938 kB / 370.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.057e-05/0.3703, allocations: 0 / 370.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.122e-06/0.3703, allocations: 0 / 370.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.3706, allocations: 39.84 kB / 370.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.019e-05/0.3706, allocations: 0 / 370.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.352e-05/0.3707, allocations: 4 kB / 370.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.891e-05/0.3707, allocations: 3.984 kB / 370.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.832e-05/0.3707, allocations: 3.938 kB / 370.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-06/0.3708, allocations: 4 kB / 370.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.3709, allocations: 39.95 kB / 370.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.76e-06/0.3709, allocations: 0 / 370.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.423e-05/0.371, allocations: 29.7 kB / 370.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.718e-05/0.3711, allocations: 31.89 kB / 370.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.3711, allocations: 0 / 370.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3711, allocations: 0 / 370.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.3711, allocations: 0 / 370.4 MB, free: 12.23 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.0003478/0.3715, allocations: 354.8 kB / 370.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3715, allocations: 8.031 kB / 370.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.3716, allocations: 3.953 kB / 370.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.3717, allocations: 159.1 kB / 370.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3717, allocations: 0 / 370.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3717, allocations: 0 / 370.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.388e-05/0.3718, allocations: 37.69 kB / 370.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3719, allocations: 0 / 370.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.3719, allocations: 4 kB / 370.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.3719, allocations: 0 / 370.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.291e-05/0.3719, allocations: 11.89 kB / 370.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.3721, allocations: 141.7 kB / 371.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.746e-05/0.3721, allocations: 14.58 kB / 371.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.3722, allocations: 0 / 371.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.3722, allocations: 64.36 kB / 371.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.422e-06/0.3722, allocations: 4 kB / 371.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001839/0.3724, allocations: 71.23 kB / 371.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.3725, allocations: 77.11 kB / 371.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.836e-05/0.3725, allocations: 93.8 kB / 371.4 MB, free: 11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.3726, allocations: 25.7 kB / 371.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/0.3726, allocations: 150.6 kB / 371.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.3727, allocations: 0 / 371.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-06/0.3727, allocations: 0 / 371.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3728, allocations: 322.9 kB / 371.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.24e-05/0.3729, allocations: 7.984 kB / 371.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.182e-06/0.3729, allocations: 0 / 371.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.3729, allocations: 29.7 kB / 371.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3729, allocations: 3.938 kB / 371.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.944e-05/0.373, allocations: 59.34 kB / 372 MB, free: 10.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.3731, allocations: 33.7 kB / 372 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3731, allocations: 0 / 372 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3731, allocations: 3.984 kB / 372 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.3731, allocations: 96 / 372 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3731, allocations: 4 kB / 372 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.836e-05/0.3732, allocations: 0 / 372 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3732, allocations: 4 kB / 372 MB, free: 10.33 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.0001065/0.3733, allocations: 139.5 kB / 372.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.3733, allocations: 0 / 372.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.3733, allocations: 7.125 kB / 372.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3734, allocations: 4 kB / 372.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3734, allocations: 0 / 372.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.3734, allocations: 81.09 kB / 372.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3734, allocations: 4 kB / 372.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.3735, allocations: 0 / 372.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.3735, allocations: 3.953 kB / 372.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001571/0.3737, allocations: 198 kB / 372.4 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002052/0.3739, allocations: 236.5 kB / 372.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.22e-05/0.3739, allocations: 8.062 kB / 372.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.443e-05/0.374, allocations: 75.28 kB / 372.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of Backend: time 5.71e-07/0.374, allocations: 0 / 372.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006931/0.3747, allocations: 240.6 kB / 373 MB, free: 9.293 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004305/0.3751, allocations: 0.6072 MB / 373.6 MB, free: 8.617 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) []