Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 199.1 kB / 18.05 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.5 MB / 245.3 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007823/0.0007823, allocations: 95.2 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002166/0.0002168, allocations: 8 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2496, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001674/0.2514, allocations: 1.23 MB / 409.9 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000333/0.2517, allocations: 127.7 kB / 410 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.2518, allocations: 7.031 kB / 410.1 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.631e-05/0.2519, allocations: 7.922 kB / 410.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.252, allocations: 3.938 kB / 410.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.2523, allocations: 31.97 kB / 410.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.815e-05/0.2524, allocations: 31.86 kB / 410.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.2525, allocations: 13.64 kB / 410.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.847e-05/0.2525, allocations: 15.91 kB / 410.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.009e-05/0.2526, allocations: 7.938 kB / 410.2 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.2526, allocations: 4 kB / 410.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.187e-05/0.2527, allocations: 0 / 410.2 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.1e-05/0.2527, allocations: 17.67 kB / 410.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.066e-05/0.2527, allocations: 41.58 kB / 410.2 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.935e-05/0.2528, allocations: 27.95 kB / 410.3 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2528, allocations: 0 / 410.3 MB, free: 26.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2528, allocations: 0 / 410.3 MB, free: 26.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.2529, allocations: 0.5625 kB / 410.3 MB, free: 26.12 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.0003752/0.2532, allocations: 370.4 kB / 410.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2533, allocations: 8.031 kB / 410.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.2533, allocations: 8.844 kB / 410.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.2535, allocations: 192.1 kB / 410.8 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.2535, allocations: 1.625 kB / 410.8 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.2535, allocations: 4.375 kB / 410.8 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.2538, allocations: 117.9 kB / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.2538, allocations: 192 / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.2538, allocations: 3.938 kB / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2538, allocations: 0 / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.57e-05/0.2539, allocations: 30.92 kB / 411 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002816/0.2542, allocations: 257.8 kB / 411.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.2544, allocations: 142.2 kB / 411.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.779e-05/0.2545, allocations: 33.77 kB / 411.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2545, allocations: 0 / 411.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.41e-05/0.2545, allocations: 34.56 kB / 411.4 MB, free: 24.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2545, allocations: 4 kB / 411.4 MB, free: 24.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002238/0.2547, allocations: 81.52 kB / 411.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.2548, allocations: 81.05 kB / 411.6 MB, free: 24.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.935e-05/0.2549, allocations: 138.2 kB / 411.7 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.626e-06/0.2549, allocations: 29.7 kB / 411.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.2549, allocations: 84.27 kB / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.2549, allocations: 4 kB / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.2549, allocations: 0 / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.908e-05/0.255, allocations: 322.8 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.547e-05/0.2551, allocations: 4 kB / 412.2 MB, free: 23.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.881e-05/0.2551, allocations: 43.36 kB / 412.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.942e-05/0.2552, allocations: 51.36 kB / 412.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2552, allocations: 0 / 412.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001084/0.2553, allocations: 77.41 kB / 412.3 MB, free: 23.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2553, allocations: 8 kB / 412.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2553, allocations: 0 / 412.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.2554, allocations: 3.984 kB / 412.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.635e-05/0.2554, allocations: 8 kB / 412.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2554, allocations: 4 kB / 412.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.096e-05/0.2555, allocations: 0 / 412.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.2555, allocations: 4.125 kB / 412.4 MB, free: 23.73 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,assignClock.y,assignClock.u,step.y) * 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 6.164e-05/0.2555, allocations: 121.8 kB / 412.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.2556, allocations: 11.84 kB / 412.5 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.2556, allocations: 12.53 kB / 412.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2556, allocations: 0 / 412.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2556, allocations: 0 / 412.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.2557, allocations: 100.9 kB / 412.6 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.2557, allocations: 4 kB / 412.6 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.012e-05/0.2558, allocations: 7.922 kB / 412.6 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.009e-05/0.2558, allocations: 8 kB / 412.6 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001429/0.2559, allocations: 220.2 kB / 412.8 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001586/0.2561, allocations: 318 kB / 413.1 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.954e-05/0.2562, allocations: 19.98 kB / 413.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.37e-05/0.2562, allocations: 99.27 kB / 413.3 MB, free: 22.77 MB / 298.7 MB Notification: Performance of Backend: time 2.9e-07/0.2562, allocations: 0 / 413.3 MB, free: 22.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004984/0.2567, allocations: 102.3 kB / 413.4 MB, free: 22.66 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004498/0.2572, allocations: 0.6423 MB / 414 MB, free: 21.96 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 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:(2) [] 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:(3) [] 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:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.y (no alias) initial: no arrCref index:(5) [] 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:(6) [] 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:(7) [] 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:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for step.height 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: step.height (no alias) initial: 1 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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:4: step.offset (no alias) initial: 0 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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: step.y (no alias) initial: no arrCref index:(5) [] 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:(12) [] 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:(13) [] 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 step.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 step.height found! Error: Internal error GetVarIndexListByMapping: No Element for step.offset 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!