Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 200.5 kB / 18.05 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.321/1.321, allocations: 226.5 MB / 245.3 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007255/0.0007254, allocations: 105.7 kB / 297.4 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2049, allocations: 51.3 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.0015/0.2064, allocations: 1.253 MB / 409.9 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006562/0.2071, allocations: 484.9 kB / 410.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.981e-05/0.2072, allocations: 7.938 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.646e-05/0.2072, allocations: 0 / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.2074, allocations: 10.05 kB / 410.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.2076, allocations: 39.91 kB / 410.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.825e-05/0.2077, allocations: 43.8 kB / 410.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2078, allocations: 18.66 kB / 410.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.2079, allocations: 23.86 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.402e-05/0.208, allocations: 15.88 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.208, allocations: 4 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.147e-05/0.2081, allocations: 7.984 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.333e-05/0.2081, allocations: 15.92 kB / 410.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.331e-05/0.2082, allocations: 50.09 kB / 410.7 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.535e-05/0.2082, allocations: 36.5 kB / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2083, allocations: 0 / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2083, allocations: 2.344 kB / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.2083, allocations: 0 / 410.7 MB, free: 25.67 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.0003777/0.2087, allocations: 364.2 kB / 411 MB, free: 25.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2087, allocations: 8.031 kB / 411.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.2088, allocations: 23.11 kB / 411.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.209, allocations: 194.6 kB / 411.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-06/0.209, allocations: 4.312 kB / 411.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.209, allocations: 4.375 kB / 411.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002366/0.2093, allocations: 112 kB / 411.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2093, allocations: 0 / 411.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.2093, allocations: 3.344 kB / 411.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2093, allocations: 3.984 kB / 411.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.159e-05/0.2094, allocations: 27.92 kB / 411.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002351/0.2096, allocations: 265.6 kB / 411.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.482e-05/0.2097, allocations: 49.14 kB / 411.7 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.2098, allocations: 21.78 kB / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.2098, allocations: 0 / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.2098, allocations: 31.28 kB / 411.8 MB, free: 24.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.2098, allocations: 0.625 kB / 411.8 MB, free: 24.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002148/0.21, allocations: 77.52 kB / 411.9 MB, free: 24.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.2101, allocations: 81.11 kB / 411.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.585e-05/0.2102, allocations: 146.1 kB / 412.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.679e-06/0.2102, allocations: 25.7 kB / 412.1 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.175e-05/0.2102, allocations: 84.14 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.2102, allocations: 8.25 kB / 412.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.2103, allocations: 3.938 kB / 412.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.54e-05/0.2103, allocations: 318.8 kB / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.777e-05/0.2104, allocations: 8 kB / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.263e-05/0.2104, allocations: 21.7 kB / 412.5 MB, free: 23.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.631e-05/0.2105, allocations: 33.77 kB / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2105, allocations: 3.938 kB / 412.6 MB, free: 23.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.738e-05/0.2106, allocations: 61.53 kB / 412.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2106, allocations: 8 kB / 412.6 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2106, allocations: 0 / 412.6 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2106, allocations: 8.062 kB / 412.6 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.146e-05/0.2107, allocations: 11.92 kB / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.2107, allocations: 4 kB / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.238e-05/0.2108, allocations: 0 / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.2108, allocations: 4 kB / 412.7 MB, free: 23.45 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.14e-05/0.2108, allocations: 117.8 kB / 412.8 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.2109, allocations: 11.89 kB / 412.8 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.2109, allocations: 7.875 kB / 412.8 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2109, allocations: 11.94 kB / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2109, allocations: 0 / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.2109, allocations: 89.03 kB / 412.9 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.211, allocations: 0 / 412.9 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.604e-05/0.211, allocations: 7.938 kB / 412.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.2111, allocations: 11.92 kB / 412.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001443/0.2112, allocations: 208.2 kB / 413.1 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000135/0.2114, allocations: 309.9 kB / 413.4 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.466e-05/0.2114, allocations: 20.08 kB / 413.4 MB, free: 22.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.559e-05/0.2115, allocations: 106.4 kB / 413.5 MB, free: 22.5 MB / 298.7 MB Notification: Performance of Backend: time 2.91e-07/0.2115, allocations: 0 / 413.5 MB, free: 22.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004838/0.212, allocations: 94.38 kB / 413.6 MB, free: 22.41 MB / 298.7 MB Notification: Performance of SimCode: time 0.0005275/0.2125, allocations: 0.6674 MB / 414.3 MB, free: 21.68 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 subSample1.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:3: subSample1.factor (no alias) initial: 3 no arrCref index:(12) [] 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:(13) [] 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:(14) [] 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 subSample1.factor 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!