Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009156/0.0009158, allocations: 181.6 kB / 17.44 MB, free: 4.375 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.221/1.221, 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.0009466/0.0009466, allocations: 85.42 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.06457/0.06457, allocations: 12.2 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.000367, allocations: 12 kB / 392.8 MB, free: 67.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06137/0.06175, allocations: 50.29 MB / 443 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.001184/0.06298, allocations: 1.255 MB / 444.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005662/0.06356, allocations: 0.5117 MB / 444.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.278e-05/0.06363, allocations: 4 kB / 444.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.06367, allocations: 3.938 kB / 444.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.06378, allocations: 7.922 kB / 444.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.06397, allocations: 51.89 kB / 444.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.297e-05/0.06405, allocations: 43.86 kB / 444.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.158e-05/0.06414, allocations: 20.16 kB / 444.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.309e-05/0.06422, allocations: 19.88 kB / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.521e-05/0.06427, allocations: 23.86 kB / 445 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.06429, allocations: 0 / 445 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.008e-05/0.06431, allocations: 0 / 445 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.951e-05/0.06434, allocations: 11.97 kB / 445 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.744e-05/0.06437, allocations: 53.52 kB / 445.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.32e-05/0.06443, allocations: 39.88 kB / 445.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.06444, allocations: 0 / 445.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.06445, allocations: 4 kB / 445.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.586e-06/0.06446, allocations: 0 / 445.1 MB, free: 14.59 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.000303/0.06477, allocations: 359.4 kB / 445.4 MB, free: 14.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.06481, allocations: 12.03 kB / 445.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.817e-05/0.06484, allocations: 8.844 kB / 445.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.06497, allocations: 200 kB / 445.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.06499, allocations: 8.375 kB / 445.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.065, allocations: 4.312 kB / 445.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.06522, allocations: 117.2 kB / 445.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.06524, allocations: 0 / 445.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.06525, allocations: 0 / 445.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.06526, allocations: 4 kB / 445.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.101e-05/0.06534, allocations: 23.92 kB / 445.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002155/0.06556, allocations: 265.6 kB / 446.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.156e-05/0.06563, allocations: 57.14 kB / 446.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.06568, allocations: 17.78 kB / 446.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.06571, allocations: 4 kB / 446.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.231e-05/0.06572, allocations: 30.56 kB / 446.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.06573, allocations: 0 / 446.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001983/0.06593, allocations: 77.52 kB / 446.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.492e-05/0.06596, allocations: 77.11 kB / 446.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.987e-05/0.06604, allocations: 149.6 kB / 446.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-06/0.06606, allocations: 25.7 kB / 446.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.399e-05/0.06609, allocations: 84.14 kB / 446.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-06/0.0661, allocations: 8.156 kB / 446.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-06/0.06611, allocations: 4 kB / 446.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.373e-05/0.06615, allocations: 318.8 kB / 446.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.629e-05/0.06619, allocations: 8 kB / 446.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.331e-05/0.06623, allocations: 29.64 kB / 446.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.509e-05/0.0663, allocations: 37.7 kB / 447 MB, free: 12.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.06631, allocations: 0 / 447 MB, free: 12.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.87e-05/0.06642, allocations: 57.62 kB / 447 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.06644, allocations: 8 kB / 447 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.06645, allocations: 7.969 kB / 447.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/0.06646, allocations: 4.062 kB / 447.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.927e-05/0.06652, allocations: 7.984 kB / 447.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.06654, allocations: 4 kB / 447.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.372e-05/0.06658, allocations: 0 / 447.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.06659, allocations: 4 kB / 447.1 MB, free: 12.35 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 4.619e-05/0.06664, allocations: 122.4 kB / 447.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.06667, allocations: 11.91 kB / 447.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.04e-05/0.0667, allocations: 11.83 kB / 447.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.06671, allocations: 4 kB / 447.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.06671, allocations: 3.938 kB / 447.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.06675, allocations: 93 kB / 447.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.06677, allocations: 0 / 447.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.088e-05/0.06684, allocations: 7.984 kB / 447.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.101e-05/0.06687, allocations: 3.938 kB / 447.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001299/0.06701, allocations: 216.2 kB / 447.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001243/0.06714, allocations: 313.9 kB / 447.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.191e-05/0.06719, allocations: 16.08 kB / 447.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.356e-05/0.06724, allocations: 111.2 kB / 448 MB, free: 11.4 MB / 298.7 MB Notification: Performance of Backend: time 2.91e-07/0.06725, allocations: 0 / 448 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.0676, allocations: 78.41 kB / 448 MB, free: 11.32 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003551/0.06796, allocations: 0.6676 MB / 448.7 MB, free: 10.59 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 shiftSample.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:3: shiftSample.resolution (no alias) initial: 3 no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for shiftSample.shiftCounter 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: shiftSample.shiftCounter (no alias) initial: 4 no arrCref index:(13) [] 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:(14) [] 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:(15) [] 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 shiftSample.resolution found! Error: Internal error GetVarIndexListByMapping: No Element for shiftSample.shiftCounter 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!