Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 196.6 kB / 18.05 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 245.3 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007986/0.0007986, allocations: 103.7 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.0002261, allocations: 4 kB / 357.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2417, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001426/0.2431, allocations: 1.288 MB / 410 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006692/0.2438, allocations: 0.4897 MB / 410.5 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.756e-05/0.2439, allocations: 0 / 410.5 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.942e-05/0.244, allocations: 3.938 kB / 410.5 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.2441, allocations: 13.39 kB / 410.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.2444, allocations: 39.91 kB / 410.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.162e-05/0.2445, allocations: 47.78 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.948e-05/0.2446, allocations: 18.2 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.2447, allocations: 19.92 kB / 410.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.179e-05/0.2448, allocations: 16.56 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.2448, allocations: 4 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.863e-05/0.2448, allocations: 6.766 kB / 410.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.477e-05/0.2449, allocations: 15.98 kB / 410.7 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.417e-05/0.2449, allocations: 45.52 kB / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.62e-05/0.245, allocations: 43.91 kB / 410.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.245, allocations: 0 / 410.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.245, allocations: 3.938 kB / 410.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.245, allocations: 0 / 410.7 MB, free: 25.63 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003809/0.2454, allocations: 365 kB / 411.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2455, allocations: 13.19 kB / 411.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.2456, allocations: 20.83 kB / 411.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.2458, allocations: 203.1 kB / 411.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.2458, allocations: 1.062 kB / 411.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.2458, allocations: 4.375 kB / 411.3 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.246, allocations: 126.9 kB / 411.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2461, allocations: 0 / 411.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.2461, allocations: 0 / 411.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2461, allocations: 4 kB / 411.5 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.793e-05/0.2462, allocations: 27.92 kB / 411.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002512/0.2464, allocations: 272.2 kB / 411.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.074e-05/0.2465, allocations: 75.77 kB / 411.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.507e-05/0.2466, allocations: 38.64 kB / 411.9 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.2466, allocations: 7.984 kB / 411.9 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.2466, allocations: 34.5 kB / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.2467, allocations: 0 / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002261/0.2469, allocations: 89.86 kB / 412 MB, free: 24.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.661e-05/0.2469, allocations: 106.8 kB / 412.1 MB, free: 24.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.886e-05/0.247, allocations: 141.8 kB / 412.2 MB, free: 23.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.155e-06/0.247, allocations: 25.7 kB / 412.3 MB, free: 23.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.2471, allocations: 88.12 kB / 412.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.2471, allocations: 11.91 kB / 412.4 MB, free: 23.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-06/0.2471, allocations: 0 / 412.4 MB, free: 23.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.2471, allocations: 318.9 kB / 412.7 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.682e-05/0.2472, allocations: 12 kB / 412.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.964e-05/0.2472, allocations: 39.36 kB / 412.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.561e-05/0.2473, allocations: 59.3 kB / 412.8 MB, free: 23.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2473, allocations: 0 / 412.8 MB, free: 23.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001102/0.2474, allocations: 73.55 kB / 412.9 MB, free: 23.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.2475, allocations: 4.125 kB / 412.9 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2475, allocations: 4 kB / 412.9 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2475, allocations: 4 kB / 412.9 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7e-05/0.2476, allocations: 8 kB / 412.9 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.2476, allocations: 3.984 kB / 412.9 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.985e-05/0.2476, allocations: 11.94 kB / 412.9 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.2476, allocations: 0 / 412.9 MB, free: 23.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.989e-05/0.2477, allocations: 125.7 kB / 413 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.2477, allocations: 7.906 kB / 413 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.2478, allocations: 19.86 kB / 413 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2478, allocations: 3.938 kB / 413 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2478, allocations: 0 / 413 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.2478, allocations: 89 kB / 413.1 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.2478, allocations: 4 kB / 413.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/0.2479, allocations: 4 kB / 413.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.248, allocations: 7.922 kB / 413.1 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001652/0.2481, allocations: 307.5 kB / 413.4 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001662/0.2483, allocations: 397.3 kB / 413.8 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.91e-05/0.2484, allocations: 15.98 kB / 413.9 MB, free: 22.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.706e-05/0.2484, allocations: 114.3 kB / 414 MB, free: 22.06 MB / 298.7 MB Notification: Performance of Backend: time 2.7e-07/0.2484, allocations: 0 / 414 MB, free: 22.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004879/0.2489, allocations: 105.8 kB / 414.1 MB, free: 21.96 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004786/0.2494, allocations: 0.6749 MB / 414.7 MB, free: 21.22 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for sample1.y 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: sample1.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.u 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:1: shiftSample1.u (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.y 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:2: shiftSample1.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.y 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:3: sine.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude 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: sine.amplitude (no alias) initial: 1.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.f 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:1: sine.f (no alias) initial: 2.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.offset 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:2: sine.offset (no alias) initial: 0.1 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.phase 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:3: sine.phase (no alias) initial: 0.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.startTime 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:4: sine.startTime (no alias) initial: 0.0 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.y 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:3: sine.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.factor 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: periodicClock.factor (no alias) initial: 20 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolution 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:1: periodicClock.resolution (no alias) initial: Modelica.Clocked.Types.Resolution.ms no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolutionFactor 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:2: periodicClock.resolutionFactor (no alias) protected initial: 1000 no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.resolution 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:3: shiftSample1.resolution (no alias) initial: 3 no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.shiftCounter 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:4: shiftSample1.shiftCounter (no alias) initial: 4 no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver 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: periodicClock.useSolver (no alias) initial: false no arrCref index:(16) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod 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: periodicClock.solverMethod (no alias) initial: "ExplicitEuler" no arrCref index:(17) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.y found! Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.u found! Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.y found! Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude found! Error: Internal error GetVarIndexListByMapping: No Element for sine.f found! Error: Internal error GetVarIndexListByMapping: No Element for sine.offset found! Error: Internal error GetVarIndexListByMapping: No Element for sine.phase found! Error: Internal error GetVarIndexListByMapping: No Element for sine.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.factor found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolution found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolutionFactor found! Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.resolution found! Error: Internal error GetVarIndexListByMapping: No Element for shiftSample1.shiftCounter found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample1.u found!