Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 180 kB / 15.8 MB, free: 6.34 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.332/1.332, allocations: 223.2 MB / 239.7 MB, free: 1.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008875/0.0008875, allocations: 100.9 kB / 290.9 MB, free: 13.96 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.05137/0.05137, allocations: 12.05 MB / 354 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 9.656 kB / 417.9 MB, free: 87.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08702, allocations: 53.36 MB / 471.2 MB, free: 37.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3397/0.4267, allocations: 86.06 MB / 0.5442 GB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.427, allocations: 73.67 kB / 0.5443 GB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02218/0.4492, allocations: 9.54 MB / 0.5536 GB, free: 30.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4492, allocations: 0 / 0.5536 GB, free: 30.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.567e-05/0.4493, allocations: 11.06 kB / 0.5536 GB, free: 30.63 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = uDPReceive.pkgOut.pkg addReal.pkgIn.pkg = packager.pkgOut.pkg 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 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001313/0.4506, allocations: 1.035 MB / 0.5547 GB, free: 29.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4506, allocations: 15.72 kB / 0.5547 GB, free: 29.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.337e-05/0.4507, allocations: 50.55 kB / 0.5547 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.4512, allocations: 332.5 kB / 0.555 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.834e-05/0.4512, allocations: 30.09 kB / 0.5551 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.4513, allocations: 43.95 kB / 0.5551 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007712/0.4521, allocations: 472.6 kB / 0.5556 GB, free: 29.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.4521, allocations: 5.344 kB / 0.5556 GB, free: 29.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.697e-05/0.4522, allocations: 15.89 kB / 0.5556 GB, free: 29.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4522, allocations: 14.61 kB / 0.5556 GB, free: 29.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004644/0.4527, allocations: 264.6 kB / 0.5558 GB, free: 29.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.454, allocations: 1.351 MB / 0.5572 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004817/0.4545, allocations: 295.1 kB / 0.5574 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.4546, allocations: 11.72 kB / 0.5575 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.4549, allocations: 260 kB / 0.5577 GB, free: 28.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.733e-06/0.455, allocations: 1.594 kB / 0.5577 GB, free: 28.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001069/0.456, allocations: 0.8931 MB / 0.5586 GB, free: 28.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.4561, allocations: 164.7 kB / 0.5587 GB, free: 27.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.4563, allocations: 213 kB / 0.5589 GB, free: 27.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.4563, allocations: 48.22 kB / 0.559 GB, free: 27.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.4564, allocations: 203.9 kB / 0.5592 GB, free: 27.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.246e-05/0.4565, allocations: 102.8 kB / 0.5593 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.4565, allocations: 12.28 kB / 0.5593 GB, free: 27.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.565e-05/0.4566, allocations: 344.7 kB / 0.5596 GB, free: 27.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.4568, allocations: 119.1 kB / 0.5597 GB, free: 27.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.457, allocations: 331.2 kB / 0.56 GB, free: 27.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.4573, allocations: 180.4 kB / 0.5602 GB, free: 27.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4573, allocations: 1.719 kB / 0.5602 GB, free: 27.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006332/0.4579, allocations: 0.494 MB / 0.5607 GB, free: 26.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4579, allocations: 8.156 kB / 0.5607 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.4579, allocations: 6.438 kB / 0.5607 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.458, allocations: 10.97 kB / 0.5607 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.4582, allocations: 94.36 kB / 0.5608 GB, free: 26.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.4582, allocations: 13.48 kB / 0.5608 GB, free: 26.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.4584, allocations: 38.34 kB / 0.5609 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.4584, allocations: 28.62 kB / 0.5609 GB, free: 26.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.uDPSend.dummy,uDPSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$PRE.getFloat.dummy,getFloat.dummy,$PRE.getFloat.y[2],getFloat.y[2],$PRE.getFloat.y[1],getFloat.y[1],$PRE.getFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvBytes,uDPReceive.nRecvBytes,$PRE.uDPReceive.pkgOut.dummy,uDPReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,uDPSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 0.0001975/0.4586, allocations: 239.5 kB / 0.5611 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.4587, allocations: 26.92 kB / 0.5611 GB, free: 26.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003301/0.459, allocations: 234.9 kB / 0.5614 GB, free: 26.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.459, allocations: 4.25 kB / 0.5614 GB, free: 26.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.459, allocations: 1.375 kB / 0.5614 GB, free: 26.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4591, allocations: 8.328 kB / 0.5614 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.4602, allocations: 1.027 MB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.4602, allocations: 1.156 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.113e-05/0.4603, allocations: 9.75 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.4603, allocations: 2.281 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.4603, allocations: 19.94 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.4603, allocations: 2.062 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4603, allocations: 1.156 kB / 0.5624 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007807/0.4611, allocations: 0.6905 MB / 0.5631 GB, free: 25.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.4612, allocations: 108.8 kB / 0.5632 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.4612, allocations: 6.688 kB / 0.5632 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.4614, allocations: 9.344 kB / 0.5632 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.4614, allocations: 24.31 kB / 0.5632 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.419e-05/0.4615, allocations: 19.56 kB / 0.5633 GB, free: 25.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.917e-05/0.4616, allocations: 139.8 kB / 0.5634 GB, free: 25.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4616, allocations: 0 / 0.5634 GB, free: 25.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005815/0.4622, allocations: 176.6 kB / 0.5636 GB, free: 25.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (getFloat.pkgOut[1].trigger,$whenCondition1,uDPReceive.pkgOut.dummy,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006444/0.4628, allocations: 364.2 kB / 0.5639 GB, free: 25.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000536/0.4634, allocations: 371.1 kB / 0.5643 GB, free: 25.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4634, allocations: 4.25 kB / 0.5643 GB, free: 25.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.4636, allocations: 161.7 kB / 0.5644 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.464, allocations: 55.94 kB / 0.5645 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.4657, allocations: 0.9704 MB / 0.5654 GB, free: 25.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.466, allocations: 0.8247 MB / 0.5662 GB, free: 24.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.4662, allocations: 47.89 kB / 0.5663 GB, free: 24.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.4662, allocations: 27.91 kB / 0.5663 GB, free: 24.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4662, allocations: 0 / 0.5663 GB, free: 24.26 MB / 378.7 MB Notification: Performance of Templates: time 0.008035/0.4743, allocations: 4.948 MB / 0.5711 GB, free: 21.77 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.pipe 2>&1)