Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 199.1 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 226.5 MB / 245.3 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007199/0.00072, allocations: 101.4 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002266/0.0002267, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2217, allocations: 51.31 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001376/0.2232, allocations: 1.265 MB / 410 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006572/0.2238, allocations: 495.2 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.573e-05/0.2239, allocations: 1.281 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.688e-05/0.224, allocations: 3.938 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2241, allocations: 11.92 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.2244, allocations: 44.98 kB / 410.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.2245, allocations: 51.73 kB / 410.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.753e-05/0.2246, allocations: 13.23 kB / 410.6 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2247, allocations: 23.92 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.2248, allocations: 16.55 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.2248, allocations: 4 kB / 410.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.497e-05/0.2249, allocations: 8.688 kB / 410.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.2249, allocations: 14.23 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.046e-05/0.2249, allocations: 45.52 kB / 410.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.34e-05/0.225, allocations: 39.92 kB / 410.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.225, allocations: 0 / 410.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2251, allocations: 0 / 410.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.2251, allocations: 0 / 410.7 MB, free: 25.66 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.0003863/0.2255, allocations: 373 kB / 411.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2255, allocations: 9.188 kB / 411.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.2256, allocations: 18 kB / 411.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.2258, allocations: 202.4 kB / 411.3 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.2258, allocations: 8.359 kB / 411.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.2258, allocations: 5 kB / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.2261, allocations: 116.7 kB / 411.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.2261, allocations: 0 / 411.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.2261, allocations: 0 / 411.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.2261, allocations: 0 / 411.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.418e-05/0.2262, allocations: 23.98 kB / 411.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002537/0.2265, allocations: 265.7 kB / 411.7 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/0.2265, allocations: 49.22 kB / 411.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.513e-05/0.2266, allocations: 29.7 kB / 411.8 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.2266, allocations: 0 / 411.8 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.2266, allocations: 30.56 kB / 411.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.2267, allocations: 0 / 411.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002173/0.2269, allocations: 81.61 kB / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.275e-05/0.2269, allocations: 77.11 kB / 412 MB, free: 24.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.598e-05/0.227, allocations: 141.8 kB / 412.1 MB, free: 24.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.227, allocations: 25.7 kB / 412.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.377e-05/0.2271, allocations: 88.14 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.2271, allocations: 4 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/0.2271, allocations: 160 / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.2271, allocations: 322.8 kB / 412.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.742e-05/0.2272, allocations: 8 kB / 412.5 MB, free: 23.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.404e-05/0.2272, allocations: 21.7 kB / 412.6 MB, free: 23.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.894e-05/0.2273, allocations: 41.64 kB / 412.6 MB, free: 23.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.2273, allocations: 0 / 412.6 MB, free: 23.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001015/0.2274, allocations: 57.59 kB / 412.7 MB, free: 23.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2274, allocations: 8 kB / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2274, allocations: 0 / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.2275, allocations: 3.938 kB / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.167e-05/0.2275, allocations: 12.05 kB / 412.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2275, allocations: 4 kB / 412.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.382e-05/0.2276, allocations: 0 / 412.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2276, allocations: 15.88 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.815e-05/0.2277, allocations: 117.8 kB / 412.8 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.2277, allocations: 11.89 kB / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.2277, allocations: 7.875 kB / 412.8 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.2277, allocations: 4 kB / 412.8 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2277, allocations: 4 kB / 412.9 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.2278, allocations: 92.94 kB / 412.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.2278, allocations: 0 / 412.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.759e-05/0.2279, allocations: 4 kB / 412.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.2279, allocations: 7.922 kB / 413 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001451/0.2281, allocations: 216.2 kB / 413.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001497/0.2282, allocations: 306 kB / 413.5 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.258e-05/0.2283, allocations: 24.02 kB / 413.5 MB, free: 22.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.926e-05/0.2283, allocations: 106.4 kB / 413.6 MB, free: 22.47 MB / 298.7 MB Notification: Performance of Backend: time 2.81e-07/0.2284, allocations: 0 / 413.6 MB, free: 22.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004541/0.2288, allocations: 94.39 kB / 413.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005513/0.2294, allocations: 0.6595 MB / 414.3 MB, free: 21.66 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 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:1: sine.y (no alias) initial: no arrCref index:(2) [] 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:(3) [] 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:(4) [] 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:(5) [] 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:(6) [] 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:(7) [] 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:1: sine.y (no alias) initial: no arrCref index:(2) [] 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:(9) [] 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:(10) [] 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:(11) [] 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:(12) [] 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:(13) [] 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:(14) [] 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:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.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!