Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 183.2 kB / 17.44 MB, free: 4.254 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.4 MB / 223.6 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000705/0.000705, allocations: 98.33 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06165/0.06165, allocations: 12.19 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.0003759, allocations: 12 kB / 392.8 MB, free: 67.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06678/0.06717, allocations: 50.3 MB / 443.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001163/0.06837, allocations: 1.189 MB / 444.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002778/0.06866, allocations: 159.6 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.182e-05/0.06873, allocations: 0 / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.06877, allocations: 7.938 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.711e-05/0.06888, allocations: 3.984 kB / 444.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001733/0.06906, allocations: 35.91 kB / 444.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.79e-05/0.06913, allocations: 31.86 kB / 444.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.192e-05/0.06922, allocations: 11.98 kB / 444.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.678e-05/0.06927, allocations: 15.92 kB / 444.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.472e-05/0.06931, allocations: 11.94 kB / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.06933, allocations: 0 / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.027e-06/0.06935, allocations: 0 / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.06938, allocations: 11.98 kB / 444.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.06942, allocations: 41.58 kB / 444.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.962e-05/0.06947, allocations: 27.89 kB / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.06948, allocations: 3.938 kB / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.06949, allocations: 0 / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.0695, allocations: 0 / 444.6 MB, free: 15.1 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.0002971/0.0698, allocations: 359.5 kB / 445 MB, free: 14.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.06984, allocations: 8.031 kB / 445 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.06987, allocations: 8.844 kB / 445 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.07, allocations: 192.1 kB / 445.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.07002, allocations: 384 / 445.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.07004, allocations: 4.375 kB / 445.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.07024, allocations: 97.61 kB / 445.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.07026, allocations: 192 / 445.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.07027, allocations: 7.938 kB / 445.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.07028, allocations: 0 / 445.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.719e-05/0.07035, allocations: 23.92 kB / 445.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002076/0.07057, allocations: 253.8 kB / 445.5 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.113e-05/0.07064, allocations: 53.08 kB / 445.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.972e-05/0.07069, allocations: 21.77 kB / 445.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.07072, allocations: 8 kB / 445.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.07074, allocations: 30.56 kB / 445.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.07074, allocations: 0 / 445.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001908/0.07094, allocations: 69.53 kB / 445.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.656e-05/0.07096, allocations: 85.34 kB / 445.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.861e-05/0.07105, allocations: 131.1 kB / 445.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.07106, allocations: 25.7 kB / 446 MB, free: 13.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.569e-05/0.07109, allocations: 92.12 kB / 446 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-06/0.0711, allocations: 0 / 446 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.07111, allocations: 0 / 446 MB, free: 13.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.349e-05/0.07115, allocations: 310.8 kB / 446.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.45e-05/0.07119, allocations: 11.98 kB / 446.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.063e-05/0.07123, allocations: 25.66 kB / 446.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.744e-05/0.07129, allocations: 29.7 kB / 446.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.0713, allocations: 0 / 446.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.472e-05/0.0714, allocations: 77.45 kB / 446.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.07142, allocations: 4 kB / 446.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.07143, allocations: 0 / 446.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.07144, allocations: 3.984 kB / 446.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.368e-05/0.0715, allocations: 8 kB / 446.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.07152, allocations: 0 / 446.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.702e-05/0.07155, allocations: 4 kB / 446.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.07156, allocations: 4.062 kB / 446.5 MB, free: 12.92 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 (sample.y,step.y) * 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 6.031e-05/0.07163, allocations: 122.5 kB / 446.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.07166, allocations: 7.938 kB / 446.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.157e-05/0.07169, allocations: 15.77 kB / 446.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.0717, allocations: 4 kB / 446.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.0717, allocations: 0 / 446.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.07174, allocations: 92.94 kB / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.07175, allocations: 0 / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.444e-05/0.07182, allocations: 15.98 kB / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.511e-05/0.07185, allocations: 4 kB / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001158/0.07198, allocations: 212.1 kB / 447 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001225/0.07211, allocations: 310 kB / 447.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.09e-05/0.07216, allocations: 15.98 kB / 447.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.952e-05/0.07221, allocations: 103.8 kB / 447.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of Backend: time 2.8e-07/0.07221, allocations: 0 / 447.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.07258, allocations: 90.42 kB / 447.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003466/0.07293, allocations: 0.6246 MB / 448.1 MB, free: 11.21 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 sample.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:0: sample.y (no alias) initial: no arrCref index:(2) [] 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:1: step.y (no alias) initial: no arrCref index:(3) [] 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:(4) [] 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_Synchronous.Types.Resolution.ms no arrCref index:(5) [] 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:(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:3: step.height (no alias) initial: 1 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:4: step.offset (no alias) initial: 1 no arrCref index:(8) [] 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:1: step.y (no alias) initial: no arrCref index:(3) [] 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:(10) [] 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:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.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 sample.u found!