Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001279/0.001279, 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.221/1.221, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007278/0.0007278, allocations: 97.3 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05878/0.05878, allocations: 12.19 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000387/0.0003871, allocations: 19.98 kB / 392.8 MB, free: 67.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0618/0.0622, allocations: 50.29 MB / 443.1 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.001248/0.06348, allocations: 1.268 MB / 444.3 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006034/0.06411, allocations: 0.5039 MB / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.972e-05/0.06419, allocations: 0 / 444.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.06423, allocations: 3.938 kB / 444.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.06434, allocations: 11.92 kB / 444.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.06455, allocations: 39.91 kB / 444.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.654e-05/0.06463, allocations: 39.84 kB / 444.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.524e-05/0.06472, allocations: 11.98 kB / 444.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.883e-05/0.06481, allocations: 27.92 kB / 445 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.586e-05/0.06486, allocations: 23.86 kB / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.06488, allocations: 0 / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.0649, allocations: 3.938 kB / 445 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.136e-05/0.06494, allocations: 7.984 kB / 445 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.541e-05/0.06498, allocations: 53.5 kB / 445 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.682e-05/0.06504, allocations: 27.95 kB / 445.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.06505, allocations: 0 / 445.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.06506, allocations: 0 / 445.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.06506, allocations: 0 / 445.1 MB, free: 14.63 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003238/0.06539, allocations: 367.4 kB / 445.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.06543, allocations: 8.031 kB / 445.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.06547, allocations: 12.78 kB / 445.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.06561, allocations: 197 kB / 445.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.06562, allocations: 4.375 kB / 445.6 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.06564, allocations: 8.375 kB / 445.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.06589, allocations: 125.3 kB / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.0659, allocations: 0 / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.06592, allocations: 0 / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.06593, allocations: 4 kB / 445.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.702e-05/0.06601, allocations: 23.92 kB / 445.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002113/0.06623, allocations: 269.7 kB / 446.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.06639, allocations: 146.2 kB / 446.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.72e-05/0.06646, allocations: 33.77 kB / 446.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.06649, allocations: 4 kB / 446.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.134e-05/0.06651, allocations: 30.56 kB / 446.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 2.134e-06/0.06651, allocations: 0 / 446.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002229/0.06674, allocations: 97.53 kB / 446.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.466e-05/0.06676, allocations: 81.11 kB / 446.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.894e-05/0.06685, allocations: 135.7 kB / 446.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.913e-06/0.06686, allocations: 25.7 kB / 446.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.06689, allocations: 84.14 kB / 446.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.06691, allocations: 7.891 kB / 446.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.06692, allocations: 0 / 446.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.586e-05/0.06696, allocations: 318.8 kB / 447 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.06701, allocations: 19.95 kB / 447 MB, free: 12.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.06705, allocations: 31.44 kB / 447.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.645e-05/0.06714, allocations: 55.3 kB / 447.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.06715, allocations: 4 kB / 447.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00012/0.06727, allocations: 69.61 kB / 447.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.06729, allocations: 12.06 kB / 447.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.06731, allocations: 4 kB / 447.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.06732, allocations: 0 / 447.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.414e-05/0.06739, allocations: 11.98 kB / 447.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.06741, allocations: 4 kB / 447.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.086e-05/0.06746, allocations: 4 kB / 447.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.06747, allocations: 0 / 447.2 MB, free: 12.19 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.276e-05/0.06753, allocations: 130.4 kB / 447.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.06756, allocations: 7.906 kB / 447.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.06759, allocations: 16.25 kB / 447.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.0676, allocations: 0 / 447.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.06761, allocations: 0 / 447.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/0.06764, allocations: 89 kB / 447.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.06766, allocations: 8 kB / 447.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.06774, allocations: 7.984 kB / 447.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.06778, allocations: 3.938 kB / 447.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001516/0.06793, allocations: 228.2 kB / 447.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001436/0.06809, allocations: 314 kB / 448 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.953e-05/0.06815, allocations: 24.39 kB / 448 MB, free: 11.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.0682, allocations: 109.9 kB / 448.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of Backend: time 3.71e-07/0.0682, allocations: 0 / 448.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003665/0.06857, allocations: 94.27 kB / 448.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003617/0.06895, allocations: 0.6752 MB / 448.9 MB, free: 10.39 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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: assignClock.u (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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: assignClock.y (no alias) initial: no arrCref index:(2) [] 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:2: sample.y (no alias) initial: no arrCref index:(3) [] 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:3: sine.y (no alias) initial: no arrCref index:(4) [] 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:(5) [] 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:(6) [] 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:(7) [] 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:(8) [] 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:(9) [] 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:3: sine.y (no alias) initial: no arrCref index:(4) [] 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:(11) [] 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:(12) [] 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:(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 assignClock.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock.y found! 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!