Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 195.3 kB / 18.04 MB, free: 3.633 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.5 MB / 245.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007308/0.0007308, allocations: 101.7 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002243, allocations: 7.984 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2079, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001318/0.2092, allocations: 1.273 MB / 410 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006058/0.2099, allocations: 465.3 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.22e-05/0.2099, allocations: 0.8438 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.304e-05/0.21, allocations: 3.984 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.2101, allocations: 13.86 kB / 410.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.2103, allocations: 35.91 kB / 410.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.101e-05/0.2104, allocations: 43.73 kB / 410.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.189e-05/0.2105, allocations: 8.609 kB / 410.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.937e-05/0.2106, allocations: 19.94 kB / 410.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.806e-05/0.2106, allocations: 24.69 kB / 410.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.2106, allocations: 0 / 410.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.389e-05/0.2107, allocations: 6.125 kB / 410.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.959e-05/0.2107, allocations: 7.984 kB / 410.6 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.172e-05/0.2108, allocations: 45.52 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.333e-05/0.2108, allocations: 39.92 kB / 410.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2109, allocations: 0 / 410.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2109, allocations: 0 / 410.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.2109, allocations: 1.25 kB / 410.7 MB, free: 25.74 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.0003235/0.2112, allocations: 355.3 kB / 411 MB, free: 25.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.2112, allocations: 12.03 kB / 411 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.2114, allocations: 16.84 kB / 411 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.2115, allocations: 192.1 kB / 411.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.2115, allocations: 384 / 411.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.2115, allocations: 4.375 kB / 411.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.2117, allocations: 102.5 kB / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2117, allocations: 0 / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.2117, allocations: 0 / 411.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2118, allocations: 4 kB / 411.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.814e-05/0.2118, allocations: 27.86 kB / 411.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002059/0.212, allocations: 269.7 kB / 411.6 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.234e-05/0.2121, allocations: 45.14 kB / 411.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.074e-05/0.2122, allocations: 21.78 kB / 411.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.2122, allocations: 4 kB / 411.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.2122, allocations: 34.56 kB / 411.7 MB, free: 24.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.2122, allocations: 0 / 411.7 MB, free: 24.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001991/0.2124, allocations: 69.52 kB / 411.8 MB, free: 24.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.805e-05/0.2125, allocations: 85.36 kB / 411.9 MB, free: 24.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.2125, allocations: 148.4 kB / 412 MB, free: 24.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-06/0.2125, allocations: 25.7 kB / 412.1 MB, free: 24.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.374e-05/0.2126, allocations: 84.14 kB / 412.1 MB, free: 24.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.063e-05/0.2126, allocations: 3.906 kB / 412.1 MB, free: 24.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.2126, allocations: 0 / 412.1 MB, free: 24.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.946e-05/0.2126, allocations: 318.8 kB / 412.4 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.566e-05/0.2127, allocations: 8 kB / 412.5 MB, free: 23.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.28e-05/0.2127, allocations: 29.64 kB / 412.5 MB, free: 23.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.632e-05/0.2128, allocations: 37.66 kB / 412.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2128, allocations: 0 / 412.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001201/0.2129, allocations: 65.67 kB / 412.6 MB, free: 23.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.2129, allocations: 7.938 kB / 412.6 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.213, allocations: 4 kB / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.213, allocations: 0 / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.8e-05/0.213, allocations: 4 kB / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.213, allocations: 0 / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.412e-05/0.2131, allocations: 7.984 kB / 412.6 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.2131, allocations: 4.062 kB / 412.6 MB, free: 23.54 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 4.903e-05/0.2132, allocations: 117.8 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.2132, allocations: 7.906 kB / 412.7 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.2132, allocations: 11.86 kB / 412.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2132, allocations: 0 / 412.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2132, allocations: 0 / 412.7 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.2133, allocations: 93 kB / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.2133, allocations: 4 kB / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.643e-05/0.2134, allocations: 0 / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/0.2134, allocations: 11.94 kB / 412.9 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001312/0.2135, allocations: 216.1 kB / 413.1 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001292/0.2137, allocations: 314 kB / 413.4 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.198e-05/0.2137, allocations: 16 kB / 413.4 MB, free: 22.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.2138, allocations: 103.2 kB / 413.5 MB, free: 22.6 MB / 298.7 MB Notification: Performance of Backend: time 3.41e-07/0.2138, allocations: 4 kB / 413.5 MB, free: 22.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003801/0.2142, allocations: 93.8 kB / 413.6 MB, free: 22.5 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003811/0.2145, allocations: 0.6557 MB / 414.2 MB, free: 21.79 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 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 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 periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample1.u found!