Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 196.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.315/1.315, allocations: 226.5 MB / 245.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007588/0.0007589, allocations: 103.4 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002262/0.0002262, allocations: 4 kB / 357.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2317, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.001432/0.2332, allocations: 1.288 MB / 410 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006183/0.2338, allocations: 488.3 kB / 410.5 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.2339, allocations: 4 kB / 410.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.283e-05/0.2339, allocations: 2.094 kB / 410.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2341, allocations: 11.92 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.2343, allocations: 43.39 kB / 410.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.815e-05/0.2344, allocations: 43.8 kB / 410.6 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2345, allocations: 19.14 kB / 410.6 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.2346, allocations: 23.92 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.2347, allocations: 15.86 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.2347, allocations: 4 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.974e-05/0.2348, allocations: 4 kB / 410.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.018e-05/0.2348, allocations: 15.92 kB / 410.6 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.2349, allocations: 42.2 kB / 410.7 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.267e-05/0.2349, allocations: 49.06 kB / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.235, allocations: 0 / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.235, allocations: 0 / 410.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.235, 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.0003563/0.2353, allocations: 371 kB / 411.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2354, allocations: 11.97 kB / 411.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2355, allocations: 20.83 kB / 411.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.2357, allocations: 194.3 kB / 411.3 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.2357, allocations: 9.516 kB / 411.3 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.2357, allocations: 4.375 kB / 411.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.2359, allocations: 122.2 kB / 411.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.236, allocations: 0 / 411.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.236, allocations: 4 kB / 411.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.236, allocations: 0 / 411.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.97e-05/0.2361, allocations: 31.92 kB / 411.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002406/0.2363, allocations: 270.6 kB / 411.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.382e-05/0.2364, allocations: 71.78 kB / 411.8 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.637e-05/0.2365, allocations: 30.64 kB / 411.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2365, allocations: 3.984 kB / 411.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.2365, allocations: 50.5 kB / 411.9 MB, free: 24.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2365, allocations: 0 / 411.9 MB, free: 24.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002403/0.2368, allocations: 85.52 kB / 412 MB, free: 24.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.2368, allocations: 102.8 kB / 412.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.777e-05/0.2369, allocations: 142.2 kB / 412.2 MB, free: 23.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.2369, allocations: 33.7 kB / 412.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.737e-05/0.237, allocations: 84.14 kB / 412.3 MB, free: 23.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.112e-05/0.237, allocations: 3.906 kB / 412.3 MB, free: 23.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-06/0.237, allocations: 4 kB / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.237, allocations: 318.8 kB / 412.7 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.874e-05/0.2371, allocations: 11.94 kB / 412.7 MB, free: 23.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.2371, allocations: 39.42 kB / 412.7 MB, free: 23.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.905e-05/0.2372, allocations: 55.3 kB / 412.8 MB, free: 23.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2372, allocations: 0 / 412.8 MB, free: 23.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001139/0.2373, allocations: 73.61 kB / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2373, allocations: 8 kB / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2374, allocations: 0 / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2374, allocations: 0 / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.769e-05/0.2374, allocations: 8 kB / 412.9 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2375, allocations: 11.92 kB / 412.9 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.053e-05/0.2375, allocations: 12.06 kB / 412.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.2375, allocations: 0 / 412.9 MB, free: 23.24 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 5.445e-05/0.2376, allocations: 125.7 kB / 413 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.2376, allocations: 11.84 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/0.2377, allocations: 11.86 kB / 413 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2377, allocations: 4 kB / 413 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2377, allocations: 0 / 413 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.2377, allocations: 93 kB / 413.1 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.2377, allocations: 4 kB / 413.1 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.919e-05/0.2378, allocations: 4 kB / 413.1 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.2378, allocations: 12.02 kB / 413.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001672/0.238, allocations: 307.5 kB / 413.4 MB, free: 22.63 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001522/0.2382, allocations: 401.2 kB / 413.8 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.954e-05/0.2382, allocations: 20.02 kB / 413.8 MB, free: 22.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.562e-05/0.2383, allocations: 114.5 kB / 414 MB, free: 22.09 MB / 298.7 MB Notification: Performance of Backend: time 3.11e-07/0.2383, allocations: 0 / 414 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004785/0.2388, allocations: 98.33 kB / 414.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004252/0.2392, allocations: 0.6752 MB / 414.7 MB, free: 21.26 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 subSample1.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:2: subSample1.u (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for subSample1.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: subSample1.y (no alias) initial: no arrCref index:(4) [] 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:(5) [] 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:(6) [] 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:(7) [] 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:(8) [] 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:(9) [] 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:(11) [] 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:(12) [] 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:(13) [] 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:(14) [] 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:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for subSample1.inferFactor 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: subSample1.inferFactor (no alias) initial: false no arrCref index:(16) [] 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:(17) [] 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 subSample1.u found! Error: Internal error GetVarIndexListByMapping: No Element for subSample1.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 subSample1.inferFactor found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample1.u found!