Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002451/0.00245, allocations: 196.1 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.588/1.588, allocations: 226.5 MB / 245.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007741/0.000774, allocations: 96.06 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003809, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2342, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001319/0.2355, allocations: 1.203 MB / 409.9 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002865/0.2358, allocations: 133.1 kB / 410 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.058e-05/0.2359, allocations: 11.88 kB / 410 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.492e-05/0.236, allocations: 0 / 410 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.2361, allocations: 3.938 kB / 410 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.2363, allocations: 32.33 kB / 410.1 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.659e-05/0.2364, allocations: 27.84 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.394e-05/0.2365, allocations: 12.53 kB / 410.1 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.753e-05/0.2365, allocations: 4.672 kB / 410.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.991e-05/0.2366, allocations: 11.94 kB / 410.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.2366, allocations: 6.719 kB / 410.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.068e-05/0.2366, allocations: 0 / 410.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.428e-05/0.2367, allocations: 11.92 kB / 410.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.851e-05/0.2367, allocations: 41.58 kB / 410.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.786e-05/0.2368, allocations: 23.94 kB / 410.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2368, allocations: 0 / 410.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2368, allocations: 4 kB / 410.2 MB, free: 26.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.2368, allocations: 1.156 kB / 410.2 MB, free: 26.15 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003178/0.2371, allocations: 349.4 kB / 410.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2371, allocations: 12.02 kB / 410.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.2372, allocations: 8.844 kB / 410.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.2373, allocations: 185.6 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.2373, allocations: 4.375 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.2374, allocations: 5.031 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.2375, allocations: 92.12 kB / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.2376, allocations: 192 / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.2376, allocations: 3.938 kB / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2376, allocations: 0.625 kB / 410.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.101e-05/0.2376, allocations: 15.72 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002468/0.2379, allocations: 253.8 kB / 411.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.279e-05/0.238, allocations: 53.09 kB / 411.2 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.027e-05/0.238, allocations: 13.78 kB / 411.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.238, allocations: 7.984 kB / 411.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.238, allocations: 34.56 kB / 411.2 MB, free: 24.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.238, allocations: 3.938 kB / 411.2 MB, free: 24.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001749/0.2382, allocations: 61.81 kB / 411.3 MB, free: 24.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.777e-05/0.2383, allocations: 81.05 kB / 411.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.542e-05/0.2383, allocations: 133.1 kB / 411.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.294e-06/0.2383, allocations: 25.7 kB / 411.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.774e-05/0.2384, allocations: 80.14 kB / 411.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-06/0.2384, allocations: 3.906 kB / 411.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.2384, allocations: 4 kB / 411.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.692e-05/0.2385, allocations: 318.8 kB / 411.9 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.2385, allocations: 8.031 kB / 411.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.336e-05/0.2385, allocations: 21.66 kB / 411.9 MB, free: 24.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.468e-05/0.2386, allocations: 21.7 kB / 412 MB, free: 24.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2386, allocations: 0 / 412 MB, free: 24.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.539e-05/0.2387, allocations: 65.56 kB / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2387, allocations: 4 kB / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2387, allocations: 0 / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2387, allocations: 4 kB / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-05/0.2387, allocations: 0 / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.2387, allocations: 0 / 412 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.49e-05/0.2388, allocations: 8 kB / 412.1 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.2388, allocations: 0 / 412.1 MB, free: 24.06 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.y,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.478e-05/0.2388, allocations: 121.9 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.2389, allocations: 15.78 kB / 412.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.618e-05/0.2389, allocations: 3.531 kB / 412.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2389, allocations: 4 kB / 412.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2389, allocations: 0 / 412.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.2389, allocations: 89.09 kB / 412.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.239, allocations: 0 / 412.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.558e-05/0.239, allocations: 0 / 412.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.2391, allocations: 7.984 kB / 412.3 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.981e-05/0.2392, allocations: 208.1 kB / 412.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001141/0.2393, allocations: 298 kB / 412.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.293e-05/0.2393, allocations: 12.09 kB / 412.8 MB, free: 23.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.846e-05/0.2394, allocations: 103.2 kB / 412.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of Backend: time 2.81e-07/0.2394, allocations: 0 / 412.9 MB, free: 23.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003613/0.2398, allocations: 89.72 kB / 413 MB, free: 23.06 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004025/0.2402, allocations: 0.6286 MB / 413.6 MB, free: 22.38 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.startTime (no alias) initial: 0.1 no arrCref index:(1) [] 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:(2) [] 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:(3) [] 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:(4) [] 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 (no alias) initial: no arrCref index:(5) [] 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:1: sample1.y (no alias) initial: no arrCref index:(6) [] 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:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.startValue (no alias) initial: false no arrCref index:(8) [] 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 (no alias) initial: no arrCref index:(5) [] 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:(10) [] 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 step.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 step.startValue found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for step.y found!