Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 200.5 kB / 18.05 MB, free: 3.637 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 245.3 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00073/0.0007302, allocations: 97.73 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003414, allocations: 8 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2575, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.00145/0.259, allocations: 1.195 MB / 409.9 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006283/0.2596, allocations: 409.3 kB / 410.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.743e-05/0.2597, allocations: 0 / 410.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.741e-05/0.2597, allocations: 5.703 kB / 410.3 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.981e-05/0.2598, allocations: 3.938 kB / 410.3 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.2601, allocations: 19.98 kB / 410.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.025e-05/0.2601, allocations: 31.86 kB / 410.4 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.969e-05/0.2603, allocations: 17.55 kB / 410.4 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.189e-05/0.2603, allocations: 11.94 kB / 410.4 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.906e-05/0.2604, allocations: 15.86 kB / 410.4 MB, free: 26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.2604, allocations: 0.625 kB / 410.4 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.2604, allocations: 4.844 kB / 410.4 MB, free: 26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.669e-05/0.2604, allocations: 11.97 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.2605, allocations: 37.64 kB / 410.5 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.925e-05/0.2605, allocations: 16.8 kB / 410.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2605, allocations: 3.938 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2605, allocations: 1.781 kB / 410.5 MB, free: 25.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.2606, allocations: 0 / 410.5 MB, free: 25.92 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.0004093/0.261, allocations: 353 kB / 410.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.261, allocations: 12.75 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.2611, allocations: 4.844 kB / 410.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.2612, allocations: 173.1 kB / 411 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2612, allocations: 7.781 kB / 411 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.2613, allocations: 4.359 kB / 411 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.2617, allocations: 159.5 kB / 411.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.2617, allocations: 0 / 411.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2617, allocations: 0 / 411.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2617, allocations: 7.938 kB / 411.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.2619, allocations: 45.33 kB / 411.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.262, allocations: 165.6 kB / 411.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.2623, allocations: 98.55 kB / 411.5 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.24e-05/0.2624, allocations: 36.89 kB / 411.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.2624, allocations: 3.984 kB / 411.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.2624, allocations: 34.5 kB / 411.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.2624, allocations: 0 / 411.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003217/0.2627, allocations: 113.6 kB / 411.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.859e-05/0.2628, allocations: 55.41 kB / 411.7 MB, free: 24.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/0.2628, allocations: 105.8 kB / 411.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.2629, allocations: 29.7 kB / 411.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.525e-05/0.2629, allocations: 84.14 kB / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.811e-06/0.2629, allocations: 0 / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.2629, allocations: 0 / 411.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.263, allocations: 318.8 kB / 412.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.263, allocations: 4 kB / 412.3 MB, free: 23.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.742e-05/0.263, allocations: 23.44 kB / 412.3 MB, free: 23.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.088e-05/0.2631, allocations: 47.3 kB / 412.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2631, allocations: 0 / 412.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.144e-05/0.2631, allocations: 57.48 kB / 412.4 MB, free: 23.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2631, allocations: 7.938 kB / 412.4 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2632, allocations: 8.125 kB / 412.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2632, allocations: 0 / 412.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.515e-05/0.2632, allocations: 7.984 kB / 412.4 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2632, allocations: 4 kB / 412.4 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.2633, allocations: 0 / 412.4 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.2633, allocations: 4 kB / 412.4 MB, free: 23.75 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: 0 () * 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 5.531e-05/0.2633, allocations: 113.8 kB / 412.5 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.2634, allocations: 7.938 kB / 412.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.2634, allocations: 11.84 kB / 412.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2634, allocations: 4 kB / 412.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2634, allocations: 0 / 412.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.2634, allocations: 89 kB / 412.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.2634, allocations: 3.938 kB / 412.6 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.215e-05/0.2635, allocations: 8 kB / 412.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-06/0.2635, allocations: 288 / 412.6 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002264/0.2637, allocations: 176.9 kB / 412.8 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002174/0.264, allocations: 262.7 kB / 413.1 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.201e-05/0.2641, allocations: 31.92 kB / 413.1 MB, free: 23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.614e-05/0.2641, allocations: 91.56 kB / 413.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of Backend: time 4.01e-07/0.2641, allocations: 0 / 413.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003118/0.2644, allocations: 95.95 kB / 413.3 MB, free: 22.81 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003847/0.2648, allocations: 0.5933 MB / 413.9 MB, free: 22.16 MB / 298.7 MB 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:(1) [] 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:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.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:2: ramp.simTime (no alias) protected initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.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: ramp.y (no alias) initial: no arrCref index:(4) [] 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:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.duration 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: ramp.duration (no alias) initial: 0.5 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.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:2: ramp.height (no alias) initial: 1.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.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:3: ramp.offset (no alias) initial: 0.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for ramp.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:4: ramp.startTime (no alias) initial: 0.0 no arrCref index:(9) [] 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:(10) [] 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:(11) [] 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 ramp.simTime found! Error: Internal error GetVarIndexListByMapping: No Element for ramp.y found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.period found! Error: Internal error GetVarIndexListByMapping: No Element for ramp.duration found! Error: Internal error GetVarIndexListByMapping: No Element for ramp.height found! Error: Internal error GetVarIndexListByMapping: No Element for ramp.offset found! Error: Internal error GetVarIndexListByMapping: No Element for ramp.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock1.solverMethod found!