Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001214, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 222.9 MB / 240.3 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009031/0.0009031, allocations: 115.1 kB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05076/0.05076, allocations: 12.03 MB / 352.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009817/0.0009818, allocations: 50.98 kB / 415.8 MB, free: 53.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07864, allocations: 52.33 MB / 468.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDP): time 0.004228/0.08291, allocations: 3.104 MB / 471.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.0845, allocations: 0.981 MB / 472.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.08464, allocations: 11.94 kB / 472.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.08493, allocations: 63.5 kB / 472.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.0851, allocations: 35.78 kB / 472.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.08577, allocations: 275.5 kB / 472.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.08621, allocations: 447.5 kB / 473.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.08659, allocations: 297.9 kB / 473.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.08677, allocations: 195.2 kB / 473.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.08703, allocations: 242.8 kB / 473.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.0871, allocations: 36 kB / 473.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002753/0.08738, allocations: 191.8 kB / 474 MB, free: 11.69 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.08753, allocations: 151.5 kB / 474.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.08772, allocations: 234.5 kB / 474.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005924/0.08831, allocations: 0.6854 MB / 475.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.08833, allocations: 0 / 475.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.08833, allocations: 0 / 475.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.932e-06/0.08835, allocations: 0 / 475.1 MB, free: 10.62 MB / 314.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg uDPReceive.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg packager.pkgOut.pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001615/0.08996, allocations: 1.193 MB / 476.3 MB, free: 9.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.09001, allocations: 12.03 kB / 476.3 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.09013, allocations: 64.19 kB / 476.3 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.09058, allocations: 388.1 kB / 476.7 MB, free: 8.848 MB / 314.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: uDPReceive.initialized = previous(uDPReceive.initialized) to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.0907, allocations: 96.95 kB / 476.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.09078, allocations: 56.38 kB / 476.9 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.09246, allocations: 1.298 MB / 478.2 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.09248, allocations: 0 / 478.2 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.09254, allocations: 24 kB / 478.2 MB, free: 7.301 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/0.09258, allocations: 23.98 kB / 478.2 MB, free: 7.277 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005482/0.09314, allocations: 361.3 kB / 478.6 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.09489, allocations: 2.153 MB / 480.7 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.09599, allocations: 1.185 MB / 481.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005314/0.09653, allocations: 463.1 kB / 482.4 MB, free: 2.789 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.09665, allocations: 44.34 kB / 482.4 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.0967, allocations: 54.94 kB / 482.5 MB, free: 2.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 2.625e-06/0.09671, allocations: 0 / 482.5 MB, free: 2.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.001478/0.09819, allocations: 0.8926 MB / 483.3 MB, free: 1.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/0.09839, allocations: 362.3 kB / 483.7 MB, free: 1.359 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.09866, allocations: 290.8 kB / 484 MB, free: 1.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.09872, allocations: 41.7 kB / 484 MB, free: 1.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.09886, allocations: 193.2 kB / 484.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.352e-05/0.09895, allocations: 99.06 kB / 484.3 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.09914, allocations: 162.4 kB / 484.5 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.0993, allocations: 362.8 kB / 484.8 MB, free: 204 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.09955, allocations: 161.9 kB / 485 MB, free: 40 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1672/0.2668, allocations: 0.6702 MB / 485.7 MB, free: 23.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007433/0.2676, allocations: 0.9045 MB / 486.6 MB, free: 22.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.2676, allocations: 9.312 kB / 486.6 MB, free: 22.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001178/0.2688, allocations: 0.8094 MB / 487.4 MB, free: 22.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.2688, allocations: 13.94 kB / 487.4 MB, free: 22.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/0.2689, allocations: 17.25 kB / 487.4 MB, free: 22.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.12e-05/0.2689, allocations: 26.25 kB / 487.4 MB, free: 22.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.2694, allocations: 179.3 kB / 487.6 MB, free: 22.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-05/0.2695, allocations: 36.78 kB / 487.6 MB, free: 22.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.2698, allocations: 72.75 kB / 487.7 MB, free: 22.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-05/0.2699, allocations: 52.83 kB / 487.8 MB, free: 22.55 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 31 (integerExpression.y,getFloat.pkgOut[1].autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,assignClock2.y,assignClock2.u,getInteger.y[1],getInteger.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,$CLKPRE.uDPReceive.initialized,uDPReceive.initialized,$CLKPRE.uDPReceive.bufferSize,uDPReceive.bufferSize,uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvBytes,uDPReceive.pkgOut.autoPkgBitSize,sample1.y,addInteger.u[1],uDPSend.bufferSize,integrator1[3].local_reset,integrator1[2].local_reset,integrator1[1].local_reset,getInteger.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addFloat.pkgOut[1].autoPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,packager.initialized,packager.pkgOut.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 4 (uDPReceive.dummy,uDPReceive.initialized,uDPReceive.bufferSize,packager.dummy) * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003877/0.2703, allocations: 285.3 kB / 488 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009352/0.2712, allocations: 0.5087 MB / 488.6 MB, free: 22.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.2723, allocations: 0.7186 MB / 489.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/0.2724, allocations: 13.12 kB / 489.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.2724, allocations: 4.125 kB / 489.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.2724, allocations: 7.297 kB / 489.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008764/0.2733, allocations: 475.9 kB / 489.8 MB, free: 21.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.2733, allocations: 6.203 kB / 489.8 MB, free: 21.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.2737, allocations: 121.3 kB / 489.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.2737, allocations: 5.062 kB / 489.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2738, allocations: 26.27 kB / 489.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/0.2738, allocations: 10.56 kB / 489.9 MB, free: 21.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2738, allocations: 1.969 kB / 489.9 MB, free: 21.6 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "uDPReceive.dummy = previous(uDPReceive.dummy) + uDPReceive.Ts" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.2765, allocations: 2.59 MB / 492.5 MB, free: 19.85 MB / 314.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.