Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001923, allocations: 192.1 kB / 16.75 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 226.5 MB / 244.1 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001048/0.001048, allocations: 98.73 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3018/0.3018, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004026, allocations: 8 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3431, allocations: 62.96 MB / 0.5165 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005403/0.3437, allocations: 204.5 kB / 0.5167 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004085/0.3441, allocations: 194.3 kB / 0.5169 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.821e-05/0.3441, allocations: 4 kB / 0.5169 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.973e-05/0.3442, allocations: 0 / 0.5169 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.156e-06/0.3442, allocations: 0 / 0.5169 GB, free: 36.77 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.3444, allocations: 45.34 kB / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.638e-05/0.3445, allocations: 0 / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.435e-05/0.3446, allocations: 2.781 kB / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.61e-05/0.3446, allocations: 0 / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.528e-05/0.3446, allocations: 4 kB / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-06/0.3446, allocations: 0 / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3447, allocations: 48.55 kB / 0.517 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-06/0.3447, allocations: 0 / 0.517 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.091e-05/0.3448, allocations: 37.2 kB / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.368e-05/0.3449, allocations: 28.95 kB / 0.517 GB, free: 36.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3449, allocations: 0 / 0.517 GB, free: 36.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3449, allocations: 0 / 0.517 GB, free: 36.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3449, allocations: 2.75 kB / 0.517 GB, free: 36.68 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.0002233/0.3451, allocations: 349.7 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3452, allocations: 8.5 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.3452, allocations: 0.9375 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.231e-05/0.3453, allocations: 160.4 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.3453, allocations: 4.375 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3453, allocations: 3.344 kB / 0.5175 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.547e-05/0.3454, allocations: 29.5 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3454, allocations: 3.062 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.3454, allocations: 3.938 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3454, allocations: 0 / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.766e-05/0.3455, allocations: 7.938 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.858e-05/0.3456, allocations: 144.5 kB / 0.5177 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.092e-05/0.3456, allocations: 21.81 kB / 0.5178 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.095e-05/0.3456, allocations: 7.859 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.3456, allocations: 0 / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3457, allocations: 60.2 kB / 0.5178 GB, free: 35.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3457, allocations: 0 / 0.5178 GB, free: 35.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.3458, allocations: 86.8 kB / 0.5179 GB, free: 35.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.3459, allocations: 81.11 kB / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.346e-05/0.3459, allocations: 96.86 kB / 0.5181 GB, free: 35.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.3459, allocations: 25.7 kB / 0.5181 GB, free: 35.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.022e-05/0.3459, allocations: 80.14 kB / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.3459, allocations: 0 / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-06/0.3459, allocations: 0 / 0.5182 GB, free: 35.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.584e-05/0.346, allocations: 314.8 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.114e-06/0.346, allocations: 2.844 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.339e-06/0.346, allocations: 0 / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.423e-05/0.3461, allocations: 66.44 kB / 0.5185 GB, free: 34.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3461, allocations: 0 / 0.5185 GB, free: 34.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.2e-05/0.3461, allocations: 63.91 kB / 0.5186 GB, free: 34.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3461, allocations: 31.64 kB / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3462, allocations: 3.188 kB / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3462, allocations: 3.938 kB / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3462, allocations: 0 / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.3462, allocations: 0 / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.3462, allocations: 0 / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.3462, allocations: 2.875 kB / 0.5186 GB, free: 34.86 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 6.325e-05/0.3463, allocations: 142.5 kB / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.382e-06/0.3463, allocations: 0 / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.004e-05/0.3463, allocations: 9.906 kB / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3463, allocations: 3.938 kB / 0.5188 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3463, allocations: 0 / 0.5188 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.723e-05/0.3464, allocations: 77.11 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.3464, allocations: 6.875 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.3464, allocations: 0 / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.527e-05/0.3464, allocations: 0 / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.23e-05/0.3465, allocations: 202.2 kB / 0.5191 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.459e-05/0.3466, allocations: 239.4 kB / 0.5193 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.635e-05/0.3466, allocations: 2.781 kB / 0.5193 GB, free: 34.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.658e-05/0.3466, allocations: 75.28 kB / 0.5194 GB, free: 34.08 MB / 378.7 MB Notification: Performance of Backend: time 1.022e-06/0.3466, allocations: 0 / 0.5194 GB, free: 34.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.3473, allocations: 243 kB / 0.5196 GB, free: 33.91 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002283/0.3475, allocations: 0.5965 MB / 0.5202 GB, free: 33.25 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!