Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008826/0.0008826, allocations: 182.9 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.222/1.222, 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.0006581/0.0006583, allocations: 90.02 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06166/0.06166, allocations: 12.2 MB / 332.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.000384, allocations: 15.98 kB / 392.8 MB, free: 67.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06509/0.06549, allocations: 50.29 MB / 443 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.001308/0.06684, allocations: 1.251 MB / 444.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006539/0.06752, allocations: 0.4961 MB / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.011e-05/0.06761, allocations: 4 kB / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.852e-05/0.06765, allocations: 3.938 kB / 444.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.06777, allocations: 11.91 kB / 444.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.068, allocations: 39.91 kB / 444.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.139e-05/0.06809, allocations: 43.86 kB / 444.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.869e-05/0.06819, allocations: 11.98 kB / 444.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.648e-05/0.06828, allocations: 31.84 kB / 444.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.814e-05/0.06834, allocations: 15.92 kB / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.06836, allocations: 0 / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.06838, allocations: 0 / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.06841, allocations: 15.94 kB / 445 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.997e-05/0.06845, allocations: 49.52 kB / 445 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.114e-05/0.06852, allocations: 39.86 kB / 445.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.06853, allocations: 0 / 445.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.06854, allocations: 4 kB / 445.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.06855, allocations: 3.938 kB / 445.1 MB, free: 14.61 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003747/0.06893, allocations: 359.4 kB / 445.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.06897, allocations: 8.031 kB / 445.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.06901, allocations: 8.844 kB / 445.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.06916, allocations: 200.1 kB / 445.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.06918, allocations: 4.375 kB / 445.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.06919, allocations: 4.375 kB / 445.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.06943, allocations: 117.3 kB / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.06945, allocations: 0 / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.06946, allocations: 4 kB / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.06947, allocations: 11.98 kB / 445.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.351e-05/0.06955, allocations: 19.98 kB / 445.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.06979, allocations: 261.7 kB / 446 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.674e-05/0.06987, allocations: 49.14 kB / 446.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.176e-05/0.06992, allocations: 21.78 kB / 446.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.06994, allocations: 0 / 446.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.221e-05/0.06996, allocations: 46.42 kB / 446.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.06996, allocations: 0 / 446.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002114/0.07018, allocations: 69.59 kB / 446.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.833e-05/0.07021, allocations: 89.03 kB / 446.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.499e-05/0.0703, allocations: 134.2 kB / 446.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.07031, allocations: 25.7 kB / 446.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.997e-05/0.07035, allocations: 88.39 kB / 446.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.019e-05/0.07036, allocations: 4 kB / 446.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.07037, allocations: 0 / 446.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.07042, allocations: 318.8 kB / 446.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.668e-05/0.07046, allocations: 8 kB / 446.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.54e-05/0.0705, allocations: 25.7 kB / 446.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.725e-05/0.07058, allocations: 29.77 kB / 446.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.07059, allocations: 7.938 kB / 446.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.07069, allocations: 61.53 kB / 447 MB, free: 12.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.07071, allocations: 4 kB / 447 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.07072, allocations: 4.062 kB / 447 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.07074, allocations: 3.984 kB / 447 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.574e-05/0.07081, allocations: 11.98 kB / 447 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.07082, allocations: 0 / 447 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.633e-05/0.07087, allocations: 7.938 kB / 447 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.07088, allocations: 0 / 447 MB, free: 12.38 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: 0 () * 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.392e-05/0.07094, allocations: 130.4 kB / 447.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.07097, allocations: 7.906 kB / 447.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.071, allocations: 19.83 kB / 447.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.07101, allocations: 0 / 447.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.07101, allocations: 0 / 447.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.323e-05/0.07105, allocations: 93 kB / 447.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.07107, allocations: 0 / 447.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.109e-05/0.07115, allocations: 7.984 kB / 447.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.07118, allocations: 3.938 kB / 447.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001362/0.07132, allocations: 220.2 kB / 447.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001338/0.07147, allocations: 298.1 kB / 447.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.391e-05/0.07152, allocations: 16.08 kB / 447.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.717e-05/0.07158, allocations: 107.2 kB / 447.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of Backend: time 8.52e-07/0.07159, allocations: 0 / 447.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.07195, allocations: 90.28 kB / 448 MB, free: 11.35 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004038/0.07237, allocations: 0.6674 MB / 448.7 MB, free: 10.63 MB / 298.7 MB 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:0: sample1.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.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: sine.y (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude 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: sine.amplitude (no alias) initial: 1.0 no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.freqHz 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: sine.freqHz (no alias) initial: 2.0 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.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:2: sine.offset (no alias) initial: 0.1 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.phase 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: sine.phase (no alias) initial: 0.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.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: sine.startTime (no alias) initial: 0.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.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: sine.y (no alias) initial: no arrCref index:(2) [] 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:(9) [] 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:(10) [] 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:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for subSample.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:3: subSample.factor (no alias) initial: 3 no arrCref index:(12) [] 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:(13) [] 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:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for sample1.y found! Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude found! Error: Internal error GetVarIndexListByMapping: No Element for sine.freqHz found! Error: Internal error GetVarIndexListByMapping: No Element for sine.offset found! Error: Internal error GetVarIndexListByMapping: No Element for sine.phase found! Error: Internal error GetVarIndexListByMapping: No Element for sine.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 subSample.factor 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!