Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009456/0.0009457, allocations: 182.4 kB / 17.44 MB, free: 4.379 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.21/1.21, allocations: 205.4 MB / 223.6 MB, free: 8.938 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.0008463/0.0008463, allocations: 93.41 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07114/0.07114, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003791, allocations: 16 kB / 392.8 MB, free: 67.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06227/0.06266, allocations: 50.3 MB / 443.1 MB, free: 16.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001274/0.06396, allocations: 1.244 MB / 444.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006144/0.0646, allocations: 0.4961 MB / 444.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.252e-05/0.06469, allocations: 3.938 kB / 444.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.753e-05/0.06473, allocations: 0 / 444.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.06485, allocations: 15.92 kB / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.06506, allocations: 39.89 kB / 444.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.462e-05/0.06514, allocations: 31.86 kB / 444.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.531e-05/0.06523, allocations: 19.98 kB / 444.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.06532, allocations: 19.92 kB / 444.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.06538, allocations: 19.86 kB / 444.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.0654, allocations: 4 kB / 444.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.06541, allocations: 0 / 444.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.109e-05/0.06545, allocations: 7.984 kB / 445 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.06548, allocations: 45.52 kB / 445 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.83e-05/0.06555, allocations: 31.88 kB / 445 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.06556, allocations: 4 kB / 445 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.06557, allocations: 0 / 445 MB, free: 14.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.06557, allocations: 4 kB / 445 MB, free: 14.66 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.0003383/0.06592, allocations: 363.4 kB / 445.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.06597, allocations: 8.031 kB / 445.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.06601, allocations: 8.844 kB / 445.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.06615, allocations: 184.3 kB / 445.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.06617, allocations: 4.375 kB / 445.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.06618, allocations: 384 / 445.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002343/0.06642, allocations: 109.3 kB / 445.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.06644, allocations: 0 / 445.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.06646, allocations: 3.984 kB / 445.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.06647, allocations: 3.984 kB / 445.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.058e-05/0.06656, allocations: 27.92 kB / 445.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002407/0.06681, allocations: 261.7 kB / 446 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.635e-05/0.06688, allocations: 57.08 kB / 446 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.491e-05/0.06694, allocations: 21.78 kB / 446.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.06696, allocations: 0 / 446.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.06698, allocations: 34.55 kB / 446.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.06699, allocations: 0 / 446.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002211/0.06721, allocations: 73.84 kB / 446.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.7e-05/0.06724, allocations: 81.09 kB / 446.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.711e-05/0.06733, allocations: 140.5 kB / 446.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.933e-06/0.06735, allocations: 25.7 kB / 446.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.06738, allocations: 92.08 kB / 446.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.0674, allocations: 3.938 kB / 446.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.0674, allocations: 0 / 446.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.039e-05/0.06745, allocations: 318.8 kB / 446.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.717e-05/0.06749, allocations: 12.03 kB / 446.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.593e-05/0.06754, allocations: 25.64 kB / 446.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.975e-05/0.06761, allocations: 37.7 kB / 446.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.06762, allocations: 4 kB / 446.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001061/0.06773, allocations: 61.53 kB / 447 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.06775, allocations: 4 kB / 447 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.06776, allocations: 0 / 447 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.06778, allocations: 0 / 447 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.637e-05/0.06785, allocations: 11.98 kB / 447 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.06787, allocations: 0 / 447 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.626e-05/0.06791, allocations: 8.062 kB / 447 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.06792, allocations: 0 / 447 MB, free: 12.45 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.415e-05/0.06798, allocations: 126.4 kB / 447.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/0.06801, allocations: 7.906 kB / 447.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.454e-05/0.06804, allocations: 15.83 kB / 447.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.06805, allocations: 0 / 447.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.06805, allocations: 0 / 447.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.06809, allocations: 85.09 kB / 447.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.06811, allocations: 4 kB / 447.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.06819, allocations: 8 kB / 447.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.06822, allocations: 7.922 kB / 447.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001383/0.06836, allocations: 212.2 kB / 447.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001403/0.06851, allocations: 322 kB / 447.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.372e-05/0.06856, allocations: 11.98 kB / 447.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.287e-05/0.06861, allocations: 103.3 kB / 447.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of Backend: time 4.2e-07/0.06862, allocations: 4.031 kB / 447.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003695/0.069, allocations: 86.39 kB / 448 MB, free: 11.42 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003781/0.06938, allocations: 0.6671 MB / 448.6 MB, free: 10.7 MB / 298.7 MB 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:(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 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:(12) [] 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:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.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 periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample.u found!