Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 194.6 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 226.5 MB / 245.3 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007846/0.0007846, allocations: 87.98 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002256, allocations: 7.984 kB / 357.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.269, allocations: 51.29 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001889/0.2709, allocations: 1.144 MB / 409.8 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003299/0.2713, allocations: 98.27 kB / 409.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.481e-05/0.2714, allocations: 0 / 409.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.406e-05/0.2715, allocations: 3.938 kB / 409.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-05/0.2715, allocations: 3.984 kB / 409.9 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.2719, allocations: 20.55 kB / 410 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.272, allocations: 27.92 kB / 410 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.2721, allocations: 8.484 kB / 410 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.57e-05/0.2722, allocations: 6.344 kB / 410 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.2722, allocations: 11.92 kB / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.2723, allocations: 0 / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.286e-05/0.2723, allocations: 4 kB / 410 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.2723, allocations: 3.938 kB / 410 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.537e-05/0.2724, allocations: 41.62 kB / 410.1 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.748e-05/0.2725, allocations: 19.97 kB / 410.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2725, allocations: 0.6562 kB / 410.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.2725, allocations: 1.75 kB / 410.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.2725, allocations: 3.938 kB / 410.1 MB, free: 26.27 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004199/0.2729, allocations: 332.4 kB / 410.4 MB, free: 25.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.273, allocations: 8.625 kB / 410.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.273, allocations: 5.625 kB / 410.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.2732, allocations: 180.2 kB / 410.6 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2733, allocations: 1.188 kB / 410.6 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2733, allocations: 4.375 kB / 410.6 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.2737, allocations: 121.1 kB / 410.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2737, allocations: 192 / 410.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2737, allocations: 7.922 kB / 410.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2737, allocations: 0 / 410.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.909e-05/0.2738, allocations: 23.98 kB / 410.8 MB, free: 25.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.274, allocations: 156.5 kB / 410.9 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.2742, allocations: 62.55 kB / 411 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.236e-05/0.2743, allocations: 28.92 kB / 411 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.2743, allocations: 0 / 411 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.2743, allocations: 34.5 kB / 411 MB, free: 25.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2743, allocations: 4 kB / 411 MB, free: 25.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002745/0.2746, allocations: 77.52 kB / 411.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.056e-05/0.2747, allocations: 55.41 kB / 411.2 MB, free: 25.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.915e-05/0.2747, allocations: 109.8 kB / 411.3 MB, free: 24.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.2748, allocations: 29.64 kB / 411.3 MB, free: 24.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.688e-05/0.2748, allocations: 88.12 kB / 411.4 MB, free: 24.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.015e-06/0.2748, allocations: 4 kB / 411.4 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-06/0.2748, allocations: 0 / 411.4 MB, free: 24.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.987e-05/0.2749, allocations: 318.8 kB / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.2749, allocations: 4 kB / 411.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.575e-05/0.2749, allocations: 31.38 kB / 411.7 MB, free: 24.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.244e-05/0.275, allocations: 27.44 kB / 411.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.275, allocations: 0 / 411.8 MB, free: 24.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.97e-05/0.2751, allocations: 61.56 kB / 411.8 MB, free: 24.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.2751, allocations: 8 kB / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2751, allocations: 0 / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2752, allocations: 3.938 kB / 411.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.227e-05/0.2752, allocations: 8.281 kB / 411.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.2753, allocations: 3.984 kB / 411.8 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.905e-05/0.2753, allocations: 7.938 kB / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.2753, allocations: 4 kB / 411.9 MB, free: 24.26 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: 3 (assignClock1.y,assignClock1.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 7.449e-05/0.2754, allocations: 117.9 kB / 412 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.2754, allocations: 3.906 kB / 412 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.2755, allocations: 15.83 kB / 412 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2755, allocations: 0 / 412 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2755, allocations: 0 / 412 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.358e-05/0.2755, allocations: 81.11 kB / 412.1 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.2755, allocations: 3.984 kB / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.732e-05/0.2756, allocations: 4 kB / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-06/0.2756, allocations: 0 / 412.1 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001716/0.2758, allocations: 145 kB / 412.2 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001661/0.276, allocations: 238.6 kB / 412.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.615e-05/0.276, allocations: 23.98 kB / 412.5 MB, free: 23.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.533e-05/0.2761, allocations: 79.28 kB / 412.6 MB, free: 23.5 MB / 298.7 MB Notification: Performance of Backend: time 5.81e-07/0.2761, allocations: 0 / 412.6 MB, free: 23.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.2765, allocations: 89.58 kB / 412.6 MB, free: 23.41 MB / 298.7 MB Notification: Performance of SimCode: time 0.000392/0.2769, allocations: 0.5895 MB / 413.2 MB, free: 22.77 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for step.simTime 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.simTime (no alias) protected initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.period 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: periodicClock1.period (no alias) initial: 0.1 no arrCref index:(2) [] 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:1: step.startTime (no alias) initial: 0.2 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 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:2: step.y (no alias) initial: no arrCref index:(6) [] 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:0: step.height (no alias) initial: 3 no arrCref index:(7) [] 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:1: step.offset (no alias) initial: 1 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.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: periodicClock1.useSolver (no alias) initial: false no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.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: periodicClock1.solverMethod (no alias) initial: "ExplicitEuler" no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for step.simTime 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 step.y found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.period found! Error: Internal error GetVarIndexListByMapping: No Element for step.startTime 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 periodicClock1.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.solverMethod found!