Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008781/0.0008782, allocations: 178.4 kB / 17.39 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.4 MB / 223.5 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007272/0.0007273, allocations: 101.3 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3452/0.3452, allocations: 43.55 MB / 363.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003846, allocations: 12 kB / 432.6 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1202, allocations: 58.85 MB / 491.5 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006129/0.1209, allocations: 212.5 kB / 491.7 MB, free: 10.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000474/0.1214, allocations: 190.9 kB / 491.9 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.1214, allocations: 0 / 491.9 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.1215, allocations: 4 kB / 491.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.318e-06/0.1215, allocations: 0 / 491.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.1217, allocations: 39.89 kB / 491.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.185e-05/0.1218, allocations: 7.938 kB / 491.9 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.207e-05/0.1218, allocations: 7.938 kB / 491.9 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.78e-05/0.1218, allocations: 4 kB / 491.9 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.005e-05/0.1219, allocations: 3.984 kB / 491.9 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.1219, allocations: 0 / 491.9 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.122, allocations: 47.95 kB / 492 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.122, allocations: 0 / 492 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.1221, allocations: 33.69 kB / 492 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.573e-05/0.1222, allocations: 15.98 kB / 492 MB, free: 10.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1222, allocations: 0 / 492 MB, free: 10.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.14e-06/0.1222, allocations: 3.984 kB / 492 MB, free: 10.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.1222, allocations: 3.938 kB / 492 MB, free: 10.11 MB / 378.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.0003026/0.1225, allocations: 349.3 kB / 492.4 MB, free: 9.711 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1226, allocations: 8.031 kB / 492.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.1226, allocations: 0.9375 kB / 492.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.1227, allocations: 164.4 kB / 492.5 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1227, allocations: 384 / 492.5 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.1227, allocations: 384 / 492.6 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.803e-05/0.1228, allocations: 42.19 kB / 492.6 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1228, allocations: 192 / 492.6 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-06/0.1229, allocations: 3.938 kB / 492.6 MB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1229, allocations: 4 kB / 492.6 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.634e-05/0.1229, allocations: 4 kB / 492.6 MB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001291/0.123, allocations: 145.7 kB / 492.7 MB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.099e-05/0.1231, allocations: 14.58 kB / 492.8 MB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.505e-05/0.1231, allocations: 12.89 kB / 492.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-06/0.1231, allocations: 0 / 492.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.1231, allocations: 68.25 kB / 492.8 MB, free: 9.133 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1231, allocations: 0 / 492.8 MB, free: 9.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.1233, allocations: 71.23 kB / 492.9 MB, free: 9.051 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1234, allocations: 77.11 kB / 493 MB, free: 8.957 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.411e-05/0.1234, allocations: 89.86 kB / 493.1 MB, free: 8.859 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1234, allocations: 25.7 kB / 493.1 MB, free: 8.828 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.322e-05/0.1235, allocations: 84.14 kB / 493.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.1235, allocations: 0 / 493.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-06/0.1235, allocations: 0 / 493.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1236, allocations: 319 kB / 493.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.865e-06/0.1236, allocations: 0 / 493.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-06/0.1236, allocations: 7.938 kB / 493.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.9e-05/0.1237, allocations: 60.25 kB / 493.6 MB, free: 8.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1237, allocations: 3.938 kB / 493.6 MB, free: 8.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.736e-05/0.1238, allocations: 59.41 kB / 493.6 MB, free: 8.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1239, allocations: 33.7 kB / 493.7 MB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1239, allocations: 7.938 kB / 493.7 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1239, allocations: 8.031 kB / 493.7 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1239, allocations: 0 / 493.7 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.1239, allocations: 0 / 493.7 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.1239, allocations: 0 / 493.7 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.1239, allocations: 0 / 493.7 MB, free: 8.211 MB / 378.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 8.44e-05/0.124, allocations: 139.5 kB / 493.8 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.124, allocations: 0 / 493.8 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.008e-05/0.124, allocations: 11.06 kB / 493.8 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1241, allocations: 3.938 kB / 493.8 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1241, allocations: 4 kB / 493.8 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.1241, allocations: 81.11 kB / 493.9 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.1241, allocations: 0 / 493.9 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-06/0.1241, allocations: 0 / 493.9 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.1241, allocations: 3.984 kB / 493.9 MB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001112/0.1243, allocations: 190.1 kB / 494.1 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001441/0.1244, allocations: 248.4 kB / 494.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.826e-05/0.1244, allocations: 4 kB / 494.3 MB, free: 7.457 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.34e-05/0.1245, allocations: 75.28 kB / 494.4 MB, free: 7.383 MB / 378.7 MB Notification: Performance of Backend: time 4.31e-07/0.1245, allocations: 0 / 494.4 MB, free: 7.383 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000627/0.1251, allocations: 235.5 kB / 494.6 MB, free: 7.16 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003497/0.1255, allocations: 0.6065 MB / 495.2 MB, free: 6.488 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!