Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleVectorizedAndClocked.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.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y.1.|sample1.y.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleVectorizedAndClocked") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y.1.|sample1.y.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleVectorizedAndClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001541/0.001541, allocations: 199.4 kB / 18.04 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.393/1.393, allocations: 226.5 MB / 245.3 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008082/0.0008083, allocations: 103.9 kB / 297.4 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 4 kB / 357.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2585, allocations: 51.3 MB / 408.7 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleVectorizedAndClocked): time 0.001946/0.2605, allocations: 1.222 MB / 409.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003844/0.2609, allocations: 139.7 kB / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2611, allocations: 3.938 kB / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.2612, allocations: 0 / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.2613, allocations: 19.08 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.2616, allocations: 35.91 kB / 410.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.2617, allocations: 31.86 kB / 410.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.2619, allocations: 15.98 kB / 410.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.05e-05/0.2619, allocations: 12.48 kB / 410.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.677e-05/0.262, allocations: 19.86 kB / 410.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.262, allocations: 4.75 kB / 410.2 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.262, allocations: 0 / 410.2 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.269e-05/0.2621, allocations: 12.78 kB / 410.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.2621, allocations: 45.58 kB / 410.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.035e-05/0.2622, allocations: 37.8 kB / 410.3 MB, free: 26.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.2623, allocations: 0 / 410.3 MB, free: 26.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2623, allocations: 0 / 410.3 MB, free: 26.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.2623, allocations: 0 / 410.3 MB, free: 26.05 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.0004998/0.2628, allocations: 361.8 kB / 410.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.2628, allocations: 12.02 kB / 410.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.2629, allocations: 12.75 kB / 410.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.2631, allocations: 192.9 kB / 410.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.2631, allocations: 4.375 kB / 410.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.2631, allocations: 5.625 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.2634, allocations: 122 kB / 411 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2634, allocations: 192 / 411 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.2634, allocations: 3.938 kB / 411 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.514e-05/0.2635, allocations: 4 kB / 411 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.066e-05/0.2636, allocations: 38.81 kB / 411 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003633/0.2639, allocations: 357.9 kB / 411.4 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.2641, allocations: 83.7 kB / 411.5 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.585e-05/0.2641, allocations: 30.64 kB / 411.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.2641, allocations: 8 kB / 411.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.2642, allocations: 38.48 kB / 411.5 MB, free: 24.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.2642, allocations: 0 / 411.5 MB, free: 24.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002923/0.2645, allocations: 93.86 kB / 411.6 MB, free: 24.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.2645, allocations: 114.8 kB / 411.7 MB, free: 24.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.657e-05/0.2646, allocations: 140.5 kB / 411.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.2646, allocations: 29.7 kB / 411.9 MB, free: 24.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.2647, allocations: 84.14 kB / 412 MB, free: 24.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.158e-05/0.2647, allocations: 11.83 kB / 412 MB, free: 24.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.2647, allocations: 4 kB / 412 MB, free: 24.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.525e-05/0.2647, allocations: 318.8 kB / 412.3 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.325e-05/0.2648, allocations: 12 kB / 412.3 MB, free: 23.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.432e-05/0.2648, allocations: 43.36 kB / 412.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.63e-05/0.2649, allocations: 63.34 kB / 412.4 MB, free: 23.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.265, allocations: 7.875 kB / 412.4 MB, free: 23.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001232/0.2651, allocations: 69.62 kB / 412.5 MB, free: 23.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2651, allocations: 11.98 kB / 412.5 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2651, allocations: 128 / 412.5 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2651, allocations: 4 kB / 412.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.103e-05/0.2652, allocations: 4 kB / 412.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2652, allocations: 0 / 412.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.609e-05/0.2652, allocations: 4 kB / 412.5 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.2652, allocations: 0 / 412.5 MB, free: 23.52 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: 4 (sample1.y[2],sample1.y[1],sample1.u[1],sample1.u[2]) * 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 0.0001003/0.2653, allocations: 133.6 kB / 412.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.2654, allocations: 7.906 kB / 412.7 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.2654, allocations: 11.88 kB / 412.7 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2654, allocations: 4 kB / 412.7 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2654, allocations: 4 kB / 412.7 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.2655, allocations: 93 kB / 412.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.2655, allocations: 3.984 kB / 412.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.306e-05/0.2656, allocations: 4 kB / 412.8 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.2656, allocations: 7.938 kB / 412.8 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001697/0.2658, allocations: 315.4 kB / 413.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001966/0.266, allocations: 405.4 kB / 413.5 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.489e-05/0.2661, allocations: 23.98 kB / 413.5 MB, free: 22.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.391e-05/0.2662, allocations: 103.3 kB / 413.6 MB, free: 22.37 MB / 298.7 MB Notification: Performance of Backend: time 3.11e-07/0.2662, allocations: 0 / 413.6 MB, free: 22.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.2667, allocations: 111 kB / 413.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004475/0.2671, allocations: 0.6503 MB / 414.4 MB, free: 21.55 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for step1.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:0: step1.startTime (no alias) initial: 0.08 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for step2.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:1: step2.startTime (no alias) initial: 0.04 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:(3) [] 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:(4) [] 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:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.n 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: sample1.n (no alias) initial: 2 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.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: sample1.u[1] (no alias) initial: arrCref:sample1.u index:(7) [2] Error: Internal error GetVarIndexListByMapping: No Element for sample1.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:1: sample1.u[2] (no alias) initial: no arrCref index:(8) [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[1] (no alias) initial: arrCref:sample1.y index:(9) [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:3: sample1.y[2] (no alias) initial: no arrCref index:(10) [2] 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:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for step1.startValue 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: step1.startValue (no alias) initial: false no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for step2.startValue 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: step2.startValue (no alias) initial: false no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.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:1: sample1.u[2] (no alias) initial: no arrCref index:(8) [2] Error: Internal error GetVarIndexListByMapping: No Element for sample1.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: sample1.u[1] (no alias) initial: arrCref:sample1.u index:(7) [2] 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:(16) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.u found! Error: Internal error GetVarIndexListByMapping: No Element for sample1.y found! Error: Internal error GetVarIndexListByMapping: No Element for step1.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for step2.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 sample1.n found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for step1.startValue found! Error: Internal error GetVarIndexListByMapping: No Element for step2.startValue found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for step1.y found! Error: Internal error GetVarIndexListByMapping: No Element for step2.y found!