Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 200.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.365/1.365, allocations: 226.5 MB / 245.3 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007347/0.0007347, allocations: 99.02 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003298, allocations: 8 kB / 357.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3029, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001896/0.3049, allocations: 1.267 MB / 410 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003661/0.3052, allocations: 127.7 kB / 410.1 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.348e-05/0.3053, allocations: 0 / 410.1 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.819e-05/0.3054, allocations: 3.938 kB / 410.1 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.3055, allocations: 8 kB / 410.1 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.3058, allocations: 30.02 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.282e-05/0.3059, allocations: 39.84 kB / 410.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.3061, allocations: 11.98 kB / 410.2 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.253e-05/0.3061, allocations: 8.844 kB / 410.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.599e-05/0.3062, allocations: 11.92 kB / 410.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.3062, allocations: 1.281 kB / 410.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.2e-05/0.3062, allocations: 4 kB / 410.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.156e-05/0.3063, allocations: 8 kB / 410.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.546e-05/0.3063, allocations: 53.44 kB / 410.3 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.398e-05/0.3064, allocations: 32.56 kB / 410.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3064, allocations: 2.156 kB / 410.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3064, allocations: 3.938 kB / 410.3 MB, free: 26.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.3064, allocations: 0 / 410.3 MB, free: 26.09 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000421/0.3069, allocations: 352.3 kB / 410.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3069, allocations: 12.84 kB / 410.7 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.307, allocations: 8.844 kB / 410.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.3071, allocations: 198.2 kB / 410.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3072, allocations: 384 / 410.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.3072, allocations: 4.375 kB / 410.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.3075, allocations: 111.3 kB / 411 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3075, allocations: 3.75 kB / 411 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3075, allocations: 7.938 kB / 411 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3076, allocations: 0 / 411 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.3077, allocations: 23.98 kB / 411 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000281/0.308, allocations: 265.7 kB / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.3082, allocations: 138.2 kB / 411.4 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.958e-05/0.3083, allocations: 37.7 kB / 411.4 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.3083, allocations: 4 kB / 411.4 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.49e-05/0.3083, allocations: 38.55 kB / 411.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.703e-06/0.3083, allocations: 0 / 411.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002971/0.3086, allocations: 81.52 kB / 411.6 MB, free: 24.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/0.3087, allocations: 77.11 kB / 411.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3088, allocations: 142 kB / 411.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-06/0.3088, allocations: 25.7 kB / 411.8 MB, free: 24.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.368e-05/0.3089, allocations: 92.12 kB / 411.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.271e-05/0.3089, allocations: 0 / 411.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-06/0.3089, allocations: 0 / 411.9 MB, free: 24.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.634e-05/0.309, allocations: 314.8 kB / 412.2 MB, free: 23.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.305e-05/0.309, allocations: 11.98 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-05/0.3091, allocations: 35.44 kB / 412.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.3092, allocations: 51.36 kB / 412.3 MB, free: 23.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3092, allocations: 4 kB / 412.3 MB, free: 23.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001698/0.3094, allocations: 77.39 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3094, allocations: 4 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.3094, allocations: 4 kB / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3095, allocations: 0 / 412.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.102e-05/0.3095, allocations: 12.11 kB / 412.4 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.3096, allocations: 7.938 kB / 412.4 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.024e-05/0.3096, allocations: 4 kB / 412.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.3096, allocations: 7.984 kB / 412.4 MB, free: 23.7 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 6.327e-05/0.3097, allocations: 113.8 kB / 412.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.539e-05/0.3098, allocations: 11.84 kB / 412.5 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.3098, allocations: 12.23 kB / 412.5 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3098, allocations: 4 kB / 412.6 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3098, allocations: 0 / 412.6 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.3099, allocations: 100.9 kB / 412.7 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3099, allocations: 4 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.31, allocations: 4 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.3101, allocations: 3.938 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001945/0.3103, allocations: 232.2 kB / 412.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002208/0.3105, allocations: 313.9 kB / 413.2 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.057e-05/0.3106, allocations: 12 kB / 413.2 MB, free: 22.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.731e-05/0.3107, allocations: 107.3 kB / 413.3 MB, free: 22.73 MB / 298.7 MB Notification: Performance of Backend: time 5.31e-07/0.3107, allocations: 4 kB / 413.3 MB, free: 22.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006417/0.3113, allocations: 92.73 kB / 413.4 MB, free: 22.63 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006041/0.312, allocations: 0.6404 MB / 414 MB, free: 21.94 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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:0: assignClock.u (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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: assignClock.y (no alias) initial: no arrCref index:(2) [] 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:2: sample1.y (no alias) initial: no arrCref index:(3) [] 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:3: step.y (no alias) initial: no arrCref index:(4) [] 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:0: step.height (no alias) initial: 1.0 no arrCref index:(5) [] 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:1: step.offset (no alias) initial: 0.0 no arrCref index:(6) [] 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:2: step.startTime (no alias) initial: 0.1 no arrCref index:(7) [] 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:3: step.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:(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 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:(12) [] 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:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock.y found! 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.height found! Error: Internal error GetVarIndexListByMapping: No Element for step.offset 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 periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample1.u found!