Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 199.5 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.43/1.43, allocations: 226.5 MB / 245.3 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008843/0.0008843, allocations: 104 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003514, allocations: 4 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2781, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001366/0.2795, allocations: 1.215 MB / 409.9 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002688/0.2798, allocations: 127.6 kB / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.073e-05/0.2799, allocations: 5.25 kB / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.2799, allocations: 0 / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.656e-05/0.28, allocations: 7.922 kB / 410 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.2802, allocations: 29.3 kB / 410.1 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.806e-05/0.2803, allocations: 23.92 kB / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.991e-05/0.2804, allocations: 17.61 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.231e-05/0.2804, allocations: 7.938 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.998e-05/0.2804, allocations: 15.92 kB / 410.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.2805, allocations: 0 / 410.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.495e-06/0.2805, allocations: 1.219 kB / 410.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.2805, allocations: 7.984 kB / 410.2 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.2805, allocations: 45.52 kB / 410.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.551e-05/0.2806, allocations: 19.95 kB / 410.2 MB, free: 26.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.2806, allocations: 4.531 kB / 410.2 MB, free: 26.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2806, allocations: 0.6875 kB / 410.2 MB, free: 26.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.2806, allocations: 0 / 410.2 MB, free: 26.17 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003071/0.2809, allocations: 362.7 kB / 410.6 MB, free: 25.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.281, allocations: 8.031 kB / 410.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.281, allocations: 8.844 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.2811, allocations: 184.2 kB / 410.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.2812, allocations: 1.375 kB / 410.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.2812, allocations: 8.375 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.2814, allocations: 88.48 kB / 410.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.2814, allocations: 192 / 410.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.2814, allocations: 7.938 kB / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2814, allocations: 7.453 kB / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.268e-05/0.2815, allocations: 19.94 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.2817, allocations: 257.7 kB / 411.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.173e-05/0.2818, allocations: 53.09 kB / 411.2 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.93e-05/0.2818, allocations: 21.77 kB / 411.2 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.2818, allocations: 0 / 411.2 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.2819, allocations: 34.56 kB / 411.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.2819, allocations: 4 kB / 411.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001778/0.2821, allocations: 69.61 kB / 411.3 MB, free: 24.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.2821, allocations: 77.11 kB / 411.4 MB, free: 24.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.2822, allocations: 132.6 kB / 411.5 MB, free: 24.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.2822, allocations: 25.7 kB / 411.6 MB, free: 24.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.97e-05/0.2822, allocations: 92.3 kB / 411.7 MB, free: 24.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.642e-06/0.2822, allocations: 4 kB / 411.7 MB, free: 24.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-06/0.2822, allocations: 3.938 kB / 411.7 MB, free: 24.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.399e-05/0.2823, allocations: 314.8 kB / 412 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.309e-05/0.2824, allocations: 8 kB / 412 MB, free: 24.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.103e-05/0.2824, allocations: 29.58 kB / 412 MB, free: 24.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.703e-05/0.2825, allocations: 33.77 kB / 412 MB, free: 24.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.2825, allocations: 0 / 412 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.017e-05/0.2826, allocations: 61.56 kB / 412.1 MB, free: 24.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.2826, allocations: 8.062 kB / 412.1 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2826, allocations: 3.984 kB / 412.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.2826, allocations: 0 / 412.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.864e-05/0.2827, allocations: 8 kB / 412.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.2827, allocations: 0 / 412.1 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.2827, allocations: 7.984 kB / 412.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.2827, allocations: 0 / 412.1 MB, free: 24.01 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: 2 (sample1.y,step.y) * 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.67e-05/0.2828, allocations: 113.8 kB / 412.2 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.2828, allocations: 11.84 kB / 412.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.2828, allocations: 15.86 kB / 412.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.2828, allocations: 4 kB / 412.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2828, allocations: 4 kB / 412.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.408e-05/0.2829, allocations: 89 kB / 412.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-06/0.2829, allocations: 0 / 412.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.967e-05/0.283, allocations: 4 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.786e-05/0.283, allocations: 0 / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001154/0.2831, allocations: 220.1 kB / 412.6 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001276/0.2832, allocations: 306.1 kB / 412.9 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.669e-05/0.2833, allocations: 11.98 kB / 412.9 MB, free: 23.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.026e-05/0.2833, allocations: 103.3 kB / 413 MB, free: 23.08 MB / 298.7 MB Notification: Performance of Backend: time 3.71e-07/0.2833, allocations: 0 / 413 MB, free: 23.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003489/0.2837, allocations: 90.39 kB / 413.1 MB, free: 22.99 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003314/0.284, allocations: 0.6347 MB / 413.7 MB, free: 22.3 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for step.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:0: step.startTime (no alias) initial: 0.1 no arrCref index:(1) [] 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:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.y (no alias) initial: no arrCref index:(3) [] 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:(4) [] 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:(5) [] 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:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for step.height 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: step.height (no alias) initial: 1 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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:4: step.offset (no alias) initial: 1 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.y (no alias) initial: no arrCref index:(3) [] 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:(10) [] 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:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.y found! Error: Internal error GetVarIndexListByMapping: No Element for step.y found! Error: Internal error GetVarIndexListByMapping: No Element for step.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 step.height found! Error: Internal error GetVarIndexListByMapping: No Element for step.offset 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!