Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 194.5 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.391/1.391, allocations: 226.5 MB / 245.3 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 94.12 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002645, allocations: 8 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2724, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.001087/0.2735, allocations: 0.6487 MB / 409.3 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002491/0.2738, allocations: 107.7 kB / 409.4 MB, free: 26.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.644e-05/0.2739, allocations: 7.938 kB / 409.5 MB, free: 26.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.244e-05/0.2739, allocations: 3.984 kB / 409.5 MB, free: 26.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2741, allocations: 7.922 kB / 409.5 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.2743, allocations: 27.92 kB / 409.5 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.187e-05/0.2744, allocations: 35.92 kB / 409.5 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2745, allocations: 25.53 kB / 409.6 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.532e-05/0.2745, allocations: 11.94 kB / 409.6 MB, free: 26.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.221e-05/0.2746, allocations: 21.58 kB / 409.6 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.2746, allocations: 0 / 409.6 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.2746, allocations: 4 kB / 409.6 MB, free: 26.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.906e-05/0.2747, allocations: 11.92 kB / 409.6 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.2747, allocations: 47.3 kB / 409.6 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.691e-05/0.2748, allocations: 35.92 kB / 409.7 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2748, allocations: 0 / 409.7 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2748, allocations: 0 / 409.7 MB, free: 26.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.2748, allocations: 4 kB / 409.7 MB, free: 26.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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003553/0.2752, allocations: 357.5 kB / 410 MB, free: 26.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.2752, allocations: 11.97 kB / 410 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.2753, allocations: 13.5 kB / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.2754, allocations: 190.2 kB / 410.2 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.2755, allocations: 4.375 kB / 410.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.2755, allocations: 8.375 kB / 410.3 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.2757, allocations: 128.6 kB / 410.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.2757, allocations: 8.5 kB / 410.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.2757, allocations: 1.219 kB / 410.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2758, allocations: 0 / 410.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.91e-05/0.2758, allocations: 15.98 kB / 410.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.276, allocations: 170.6 kB / 410.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.2761, allocations: 66.72 kB / 410.6 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.989e-05/0.2761, allocations: 52.95 kB / 410.7 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.2761, allocations: 3.938 kB / 410.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.2762, allocations: 30.56 kB / 410.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.2762, allocations: 0 / 410.7 MB, free: 25.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001726/0.2763, allocations: 93.52 kB / 410.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.2764, allocations: 55.41 kB / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.201e-05/0.2765, allocations: 136.6 kB / 411 MB, free: 25.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.306e-06/0.2765, allocations: 25.7 kB / 411 MB, free: 25.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.909e-05/0.2765, allocations: 84.14 kB / 411.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-06/0.2765, allocations: 0 / 411.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.2765, allocations: 8 kB / 411.1 MB, free: 25.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.932e-05/0.2766, allocations: 314.8 kB / 411.4 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.2766, allocations: 11.94 kB / 411.4 MB, free: 24.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.435e-05/0.2767, allocations: 58.86 kB / 411.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.865e-05/0.2767, allocations: 70.75 kB / 411.6 MB, free: 24.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2767, allocations: 0 / 411.6 MB, free: 24.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.973e-05/0.2768, allocations: 81.55 kB / 411.6 MB, free: 24.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2768, allocations: 8.188 kB / 411.7 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2768, allocations: 8 kB / 411.7 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.2769, allocations: 0 / 411.7 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.316e-05/0.2769, allocations: 19.88 kB / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2769, allocations: 4 kB / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.287e-05/0.277, allocations: 7.844 kB / 411.7 MB, free: 24.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.277, allocations: 4 kB / 411.7 MB, free: 24.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (8): * Single equations (assignments): 8 * 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.726e-05/0.277, allocations: 125.8 kB / 411.8 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.2771, allocations: 11.84 kB / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/0.2771, allocations: 16.72 kB / 411.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2771, allocations: 0 / 411.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2771, allocations: 3.938 kB / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.2772, allocations: 93 kB / 411.9 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.2772, allocations: 3.984 kB / 411.9 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.945e-05/0.2772, allocations: 0 / 411.9 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.388e-06/0.2772, allocations: 4 kB / 412 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.316e-05/0.2773, allocations: 145 kB / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001055/0.2774, allocations: 254.7 kB / 412.3 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.997e-05/0.2775, allocations: 19.94 kB / 412.4 MB, free: 23.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.281e-05/0.2775, allocations: 105.8 kB / 412.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of Backend: time 4.41e-07/0.2775, allocations: 0 / 412.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.2778, allocations: 101.1 kB / 412.6 MB, free: 23.51 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004298/0.2783, allocations: 0.6486 MB / 413.2 MB, free: 22.81 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for add.u1 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: add.u1 (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for add.u2 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: add.u2 (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for add.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: add.y (no alias) initial: no arrCref index:(3) [] 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:3: assignClock1.u (no alias) initial: no arrCref index:(4) [] 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:4: assignClock1.y (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for const.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:5: const.y (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.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:6: unitDelay1.u (no alias) initial: unitDelay1.y_start no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.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:7: unitDelay1.y (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for add.k1 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: add.k1 (no alias) initial: 1.0 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for add.k2 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: add.k2 (no alias) initial: 1.0 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for const.k 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: const.k (no alias) initial: 1.0 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y_start 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: unitDelay1.y_start (no alias) initial: 0.0 no arrCref index:(12) [] 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:(13) [] 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:(14) [] 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:(15) [] 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:(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 add.u1 found! Error: Internal error GetVarIndexListByMapping: No Element for add.u2 found! Error: Internal error GetVarIndexListByMapping: No Element for add.y found! 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 const.y found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.u found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y found! Error: Internal error GetVarIndexListByMapping: No Element for add.k1 found! Error: Internal error GetVarIndexListByMapping: No Element for add.k2 found! Error: Internal error GetVarIndexListByMapping: No Element for const.k found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y_start 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!