Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams.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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 195.6 kB / 16.76 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 226.5 MB / 244.1 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007419/0.0007421, allocations: 103.5 kB / 296.1 MB, free: 6.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3176/0.3176, allocations: 44.83 MB / 392.9 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.0002372, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3027, allocations: 62.96 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005255/0.3032, allocations: 217.1 kB / 0.5167 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005495/0.3038, allocations: 271.2 kB / 0.517 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.631e-05/0.3038, allocations: 4 kB / 0.517 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.3038, allocations: 3.938 kB / 0.517 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.652e-06/0.3039, allocations: 0 / 0.517 GB, free: 36.82 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Streams‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.000614/0.3045, allocations: 75.61 kB / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.769e-05/0.3045, allocations: 0 / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.3046, allocations: 3.062 kB / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.35e-05/0.3046, allocations: 0 / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.212e-05/0.3046, allocations: 0 / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-06/0.3046, allocations: 3.938 kB / 0.5171 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.3048, allocations: 101.4 kB / 0.5171 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.3048, allocations: 4 kB / 0.5172 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.037e-05/0.3048, allocations: 32.66 kB / 0.5172 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.3049, allocations: 49.59 kB / 0.5172 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.305, allocations: 4 kB / 0.5172 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.305, allocations: 0 / 0.5172 GB, free: 36.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.305, allocations: 0 / 0.5172 GB, free: 36.69 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.0002387/0.3052, allocations: 359.9 kB / 0.5176 GB, free: 36.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3053, allocations: 8.719 kB / 0.5176 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.3053, allocations: 0.9375 kB / 0.5176 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.315e-05/0.3054, allocations: 164.3 kB / 0.5177 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3054, allocations: 4.375 kB / 0.5177 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.3054, allocations: 384 / 0.5177 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.024e-05/0.3055, allocations: 36.45 kB / 0.5178 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.3055, allocations: 192 / 0.5178 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3055, allocations: 3.938 kB / 0.5178 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.3055, allocations: 2.812 kB / 0.5178 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.575e-05/0.3056, allocations: 4 kB / 0.5178 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.832e-05/0.3056, allocations: 144.6 kB / 0.5179 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.002e-05/0.3057, allocations: 25.7 kB / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.393e-05/0.3057, allocations: 7.766 kB / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-06/0.3057, allocations: 0 / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3057, allocations: 56.27 kB / 0.518 GB, free: 35.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3058, allocations: 0 / 0.518 GB, free: 35.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001516/0.3059, allocations: 71.72 kB / 0.5181 GB, free: 35.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/0.3059, allocations: 77.11 kB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.247e-05/0.306, allocations: 93.98 kB / 0.5182 GB, free: 35.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-06/0.306, allocations: 25.7 kB / 0.5183 GB, free: 35.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.243e-05/0.306, allocations: 80.14 kB / 0.5183 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.306, allocations: 6.938 kB / 0.5184 GB, free: 35.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.306, allocations: 3.938 kB / 0.5184 GB, free: 35.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.3061, allocations: 314.8 kB / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-06/0.3061, allocations: 0 / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.3061, allocations: 3.688 kB / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.013e-05/0.3062, allocations: 67.47 kB / 0.5187 GB, free: 34.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3062, allocations: 0 / 0.5187 GB, free: 34.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.924e-05/0.3062, allocations: 57.06 kB / 0.5188 GB, free: 34.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3062, allocations: 34.53 kB / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-06/0.3063, allocations: 0 / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3063, allocations: 7.922 kB / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3063, allocations: 0 / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.3063, allocations: 3.938 kB / 0.5188 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.3063, allocations: 2.781 kB / 0.5188 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3063, allocations: 0 / 0.5188 GB, free: 34.87 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 5.121e-05/0.3064, allocations: 142.1 kB / 0.519 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-06/0.3064, allocations: 0 / 0.519 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-06/0.3064, allocations: 6.719 kB / 0.519 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3064, allocations: 7.125 kB / 0.519 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3064, allocations: 2.781 kB / 0.519 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.624e-05/0.3064, allocations: 81.05 kB / 0.5191 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.3064, allocations: 0 / 0.5191 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-06/0.3065, allocations: 4 kB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.909e-06/0.3065, allocations: 7.031 kB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.548e-05/0.3066, allocations: 197.7 kB / 0.5193 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.969e-05/0.3066, allocations: 244.1 kB / 0.5195 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.3e-05/0.3067, allocations: 0 / 0.5195 GB, free: 34.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.346e-05/0.3067, allocations: 75.28 kB / 0.5196 GB, free: 34.08 MB / 378.7 MB Notification: Performance of Backend: time 1.91e-07/0.3067, allocations: 0 / 0.5196 GB, free: 34.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006999/0.3074, allocations: 312.2 kB / 0.5199 GB, free: 33.9 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002319/0.3076, allocations: 0.6 MB / 0.5204 GB, free: 33.24 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!