Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 195.8 kB / 18.04 MB, free: 3.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 226.5 MB / 245.3 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007532/0.0007535, allocations: 98.84 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002225/0.0002225, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2196, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.001335/0.221, allocations: 1.206 MB / 409.9 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005501/0.2215, allocations: 439.2 kB / 410.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.424e-05/0.2216, allocations: 7.281 kB / 410.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.2216, allocations: 0 / 410.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.407e-05/0.2217, allocations: 7.922 kB / 410.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.2219, allocations: 27.92 kB / 410.4 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.222, allocations: 39.84 kB / 410.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2221, allocations: 15.97 kB / 410.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.974e-05/0.2222, allocations: 11.94 kB / 410.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.2223, allocations: 17.33 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.2223, allocations: 0 / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.2224, allocations: 4 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.2224, allocations: 14.44 kB / 410.5 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.207e-05/0.2224, allocations: 41.58 kB / 410.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.556e-05/0.2225, allocations: 27.95 kB / 410.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2225, allocations: 0 / 410.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2225, allocations: 0 / 410.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.2225, allocations: 0 / 410.5 MB, free: 25.83 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000356/0.2229, allocations: 338.4 kB / 410.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2229, allocations: 12.03 kB / 410.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.2231, allocations: 16.83 kB / 410.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.2232, allocations: 180.7 kB / 411.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.2232, allocations: 1.5 kB / 411.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.2233, allocations: 8.375 kB / 411.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.2235, allocations: 128.4 kB / 411.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2236, allocations: 0 / 411.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.2236, allocations: 0 / 411.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2236, allocations: 4 kB / 411.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.483e-05/0.2237, allocations: 23.98 kB / 411.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001037/0.2238, allocations: 167.6 kB / 411.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.2239, allocations: 62.55 kB / 411.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.475e-05/0.224, allocations: 32.86 kB / 411.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.224, allocations: 0 / 411.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.224, allocations: 38.5 kB / 411.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.603e-06/0.224, allocations: 0 / 411.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002029/0.2242, allocations: 85.52 kB / 411.6 MB, free: 24.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.515e-05/0.2243, allocations: 55.39 kB / 411.7 MB, free: 24.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.623e-05/0.2243, allocations: 113.8 kB / 411.8 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-06/0.2243, allocations: 25.7 kB / 411.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.254e-05/0.2244, allocations: 84.14 kB / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.909e-06/0.2244, allocations: 3.938 kB / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-06/0.2244, allocations: 0 / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.2244, allocations: 322.8 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-06/0.2245, allocations: 3.984 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.544e-05/0.2245, allocations: 23.44 kB / 412.2 MB, free: 23.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.782e-05/0.2245, allocations: 39.38 kB / 412.3 MB, free: 23.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2245, allocations: 0 / 412.3 MB, free: 23.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.016e-05/0.2246, allocations: 53.62 kB / 412.3 MB, free: 23.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.2246, allocations: 7.938 kB / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2246, allocations: 4.375 kB / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.2246, allocations: 0 / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.323e-05/0.2247, allocations: 4 kB / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.2247, allocations: 4 kB / 412.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/0.2247, allocations: 16 kB / 412.4 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-06/0.2247, allocations: 4 kB / 412.4 MB, free: 23.77 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 4.454e-05/0.2248, allocations: 109.8 kB / 412.5 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.2248, allocations: 11.84 kB / 412.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.349e-05/0.2248, allocations: 7.906 kB / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2248, allocations: 288 / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.2248, allocations: 0 / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/0.2249, allocations: 89.08 kB / 412.6 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.2249, allocations: 0 / 412.6 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.01e-05/0.2249, allocations: 12 kB / 412.6 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-06/0.2249, allocations: 0 / 412.6 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001365/0.2251, allocations: 141 kB / 412.7 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001341/0.2252, allocations: 246.6 kB / 413 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.287e-05/0.2253, allocations: 19.98 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.708e-05/0.2253, allocations: 91.27 kB / 413.1 MB, free: 23 MB / 298.7 MB Notification: Performance of Backend: time 3.6e-07/0.2253, allocations: 0 / 413.1 MB, free: 23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000323/0.2256, allocations: 101.6 kB / 413.2 MB, free: 22.89 MB / 298.7 MB Notification: Performance of SimCode: time 0.0002645/0.2259, allocations: 0.6131 MB / 413.8 MB, free: 22.23 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.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: assignClock1.u (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.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: assignClock1.y (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.simTime 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.simTime (no alias) protected initial: no arrCref index:(3) [] 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:3: sine.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.period 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: periodicClock1.period (no alias) initial: 0.1 no arrCref index:(5) [] 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:1: sine.amplitude (no alias) initial: 1.0 no arrCref index:(6) [] 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:2: sine.f (no alias) initial: 2.0 no arrCref index:(7) [] 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:3: sine.offset (no alias) initial: 0.0 no arrCref index:(8) [] 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:4: sine.phase (no alias) initial: 0.0 no arrCref index:(9) [] 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:5: sine.startTime (no alias) initial: 0.0 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.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: periodicClock1.useSolver (no alias) initial: false no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.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: periodicClock1.solverMethod (no alias) initial: "ExplicitEuler" no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.y found! Error: Internal error GetVarIndexListByMapping: No Element for sine.simTime found! Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.period 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 periodicClock1.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.solverMethod found!