Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 200.5 kB / 18.05 MB, free: 3.637 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.5 MB / 245.3 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000773/0.0007731, allocations: 101.7 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002131/0.0002131, allocations: 8 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2246, allocations: 51.31 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.001512/0.2261, allocations: 1.281 MB / 410 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006309/0.2268, allocations: 477.1 kB / 410.4 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.568e-05/0.2269, allocations: 7.875 kB / 410.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.115e-05/0.2269, allocations: 0 / 410.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.227, allocations: 11.92 kB / 410.5 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.2273, allocations: 37.62 kB / 410.5 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.806e-05/0.2274, allocations: 39.86 kB / 410.5 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.2275, allocations: 17.55 kB / 410.6 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2276, allocations: 19.92 kB / 410.6 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.703e-05/0.2276, allocations: 19.8 kB / 410.6 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.2277, allocations: 4.625 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.639e-05/0.2277, allocations: 4 kB / 410.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.2277, allocations: 12.83 kB / 410.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.2278, allocations: 45.52 kB / 410.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.102e-05/0.2279, allocations: 40.77 kB / 410.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2279, allocations: 0 / 410.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2279, allocations: 0 / 410.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.2279, allocations: 2.062 kB / 410.7 MB, free: 25.7 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.0003682/0.2283, allocations: 364.2 kB / 411.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.2283, allocations: 8.031 kB / 411.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.2285, allocations: 18.09 kB / 411.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.2286, allocations: 196.1 kB / 411.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.2286, allocations: 7.781 kB / 411.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.2287, allocations: 4.375 kB / 411.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.2289, allocations: 122.2 kB / 411.4 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.2289, allocations: 0 / 411.4 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.2289, allocations: 3.984 kB / 411.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2289, allocations: 8 kB / 411.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.68e-05/0.229, allocations: 23.92 kB / 411.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002375/0.2293, allocations: 265.7 kB / 411.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.2294, allocations: 146.2 kB / 411.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.161e-05/0.2295, allocations: 33.77 kB / 411.9 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.2295, allocations: 0 / 411.9 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.2296, allocations: 34.56 kB / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2296, allocations: 4 kB / 411.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002622/0.2298, allocations: 81.52 kB / 412 MB, free: 24.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.2299, allocations: 81.11 kB / 412.1 MB, free: 24.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.201e-05/0.23, allocations: 140.2 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.23, allocations: 33.7 kB / 412.2 MB, free: 23.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.237e-05/0.23, allocations: 88.27 kB / 412.3 MB, free: 23.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.23, allocations: 0 / 412.3 MB, free: 23.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-06/0.23, allocations: 0 / 412.3 MB, free: 23.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.2301, allocations: 318.8 kB / 412.6 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.976e-05/0.2301, allocations: 12 kB / 412.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.235e-05/0.2302, allocations: 35.42 kB / 412.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.012e-05/0.2303, allocations: 63.23 kB / 412.8 MB, free: 23.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2303, allocations: 4 kB / 412.8 MB, free: 23.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001181/0.2304, allocations: 77.45 kB / 412.8 MB, free: 23.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2304, allocations: 8 kB / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.2304, allocations: 0 / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.2305, allocations: 0 / 412.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.849e-05/0.2305, allocations: 8 kB / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2305, allocations: 4 kB / 412.9 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.966e-05/0.2306, allocations: 11.92 kB / 412.9 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.2306, allocations: 8.125 kB / 412.9 MB, free: 23.25 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.175e-05/0.2307, allocations: 117.8 kB / 413 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.542e-05/0.2307, allocations: 7.906 kB / 413 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.2307, allocations: 12.23 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2307, allocations: 0 / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2307, allocations: 3.938 kB / 413 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.2308, allocations: 100.9 kB / 413.1 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.2308, allocations: 4 kB / 413.1 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.699e-05/0.2309, allocations: 8 kB / 413.1 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.653e-05/0.2309, allocations: 3.938 kB / 413.1 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001506/0.2311, allocations: 224.2 kB / 413.3 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001524/0.2312, allocations: 322.3 kB / 413.7 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.036e-05/0.2313, allocations: 24.02 kB / 413.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.598e-05/0.2313, allocations: 103.3 kB / 413.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of Backend: time 5.31e-07/0.2313, allocations: 0 / 413.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.2318, allocations: 110.3 kB / 413.9 MB, free: 22.16 MB / 298.7 MB Notification: Performance of SimCode: time 0.000432/0.2322, allocations: 0.6518 MB / 414.5 MB, free: 21.45 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 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 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:3: sine.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:(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 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:(14) [] 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:(15) [] 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 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!