Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 194.5 kB / 18.04 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 226.5 MB / 245.3 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007928/0.0007929, allocations: 110.8 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002638, allocations: 4 kB / 357.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 51.3 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.001149/0.2894, allocations: 0.5549 MB / 409.3 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002945/0.2897, allocations: 119.7 kB / 409.4 MB, free: 27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.805e-05/0.2898, allocations: 0.5938 kB / 409.4 MB, free: 27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.635e-05/0.2899, allocations: 7.922 kB / 409.4 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.29, allocations: 1.719 kB / 409.4 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000249/0.2903, allocations: 31.91 kB / 409.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.226e-05/0.2904, allocations: 35.92 kB / 409.4 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.2905, allocations: 16.73 kB / 409.5 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.555e-05/0.2905, allocations: 12.75 kB / 409.5 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.926e-05/0.2906, allocations: 19.84 kB / 409.5 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.2906, allocations: 1.969 kB / 409.5 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.201e-05/0.2906, allocations: 4 kB / 409.5 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.029e-05/0.2907, allocations: 15.92 kB / 409.5 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.2907, allocations: 41.58 kB / 409.6 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.741e-05/0.2908, allocations: 31.94 kB / 409.6 MB, free: 26.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2908, allocations: 1 kB / 409.6 MB, free: 26.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2908, allocations: 0 / 409.6 MB, free: 26.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.2908, allocations: 0 / 409.6 MB, free: 26.78 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.0003605/0.2912, allocations: 357.2 kB / 409.9 MB, free: 26.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.2913, allocations: 9.062 kB / 409.9 MB, free: 26.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.2913, allocations: 8.844 kB / 410 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.2915, allocations: 204 kB / 410.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2915, allocations: 6.031 kB / 410.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.2915, allocations: 4.375 kB / 410.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.2918, allocations: 129.1 kB / 410.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2918, allocations: 3.188 kB / 410.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.2919, allocations: 3.938 kB / 410.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.2919, allocations: 0 / 410.3 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.2919, allocations: 23.91 kB / 410.3 MB, free: 25.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.292, allocations: 165.7 kB / 410.5 MB, free: 25.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.2922, allocations: 63.62 kB / 410.5 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.33e-05/0.2922, allocations: 48.88 kB / 410.6 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.2923, allocations: 0 / 410.6 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.2923, allocations: 34.5 kB / 410.6 MB, free: 25.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.2923, allocations: 0 / 410.6 MB, free: 25.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002021/0.2925, allocations: 93.5 kB / 410.7 MB, free: 25.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.2925, allocations: 59.34 kB / 410.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.936e-05/0.2926, allocations: 132.8 kB / 410.9 MB, free: 25.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.2927, allocations: 25.7 kB / 410.9 MB, free: 25.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.742e-05/0.2927, allocations: 88.14 kB / 411 MB, free: 25.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.115e-06/0.2927, allocations: 4 kB / 411 MB, free: 25.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.2927, allocations: 0 / 411 MB, free: 25.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.55e-05/0.2928, allocations: 318.8 kB / 411.3 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.2928, allocations: 4 kB / 411.3 MB, free: 24.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.349e-05/0.2928, allocations: 62.8 kB / 411.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.691e-05/0.2929, allocations: 66.81 kB / 411.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2929, allocations: 0 / 411.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.678e-05/0.293, allocations: 89.41 kB / 411.5 MB, free: 24.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.293, allocations: 7.984 kB / 411.6 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.293, allocations: 4 kB / 411.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2931, allocations: 3.938 kB / 411.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.845e-05/0.2931, allocations: 8.188 kB / 411.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.2931, allocations: 8 kB / 411.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.068e-05/0.2931, allocations: 0 / 411.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.2931, allocations: 4 kB / 411.6 MB, free: 24.52 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: 8 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,assignClock1.y,assignClock1.u) * 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 7.013e-05/0.2932, allocations: 132.5 kB / 411.7 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.086e-05/0.2932, allocations: 7.906 kB / 411.7 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.2933, allocations: 16.31 kB / 411.7 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2933, allocations: 0 / 411.7 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2933, allocations: 0 / 411.7 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.2933, allocations: 93 kB / 411.8 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.2934, allocations: 8 kB / 411.8 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.538e-05/0.2934, allocations: 0 / 411.8 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-06/0.2934, allocations: 4 kB / 411.8 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001054/0.2935, allocations: 148.9 kB / 412 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001156/0.2936, allocations: 246.7 kB / 412.2 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.703e-05/0.2937, allocations: 23.92 kB / 412.2 MB, free: 23.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.2937, allocations: 107.2 kB / 412.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of Backend: time 1.252e-06/0.2937, allocations: 0 / 412.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003487/0.2941, allocations: 102.3 kB / 412.5 MB, free: 23.59 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004729/0.2946, allocations: 0.6424 MB / 413.1 MB, free: 22.89 MB / 298.7 MB 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:(1) [] 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:(2) [] 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:(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:0: 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:1: assignClock1.y (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.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: integerConstant.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:3: 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:4: unitDelay1.y (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.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:5: xor.u1 (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.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:6: xor.u2 (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.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: xor.y (no alias) initial: no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.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:0: integerConstant.k (no alias) initial: true 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:1: periodicClock.useSolver (no alias) initial: false no arrCref index:(13) [] 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:2: unitDelay1.y_start (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 assignClock1.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.y found! Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.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 xor.u1 found! Error: Internal error GetVarIndexListByMapping: No Element for xor.u2 found! Error: Internal error GetVarIndexListByMapping: No Element for xor.y 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 integerConstant.k found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y_start found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found!