Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.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_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 182.5 kB / 13.23 MB, free: 2.086 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.398/1.398, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.0008395/0.0008396, allocations: 111 kB / 286.1 MB, free: 12.97 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.05563/0.05563, allocations: 11.9 MB / 348.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.317e-05, allocations: 5.953 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 53.36 MB / 463.5 MB, free: 4.895 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3969/0.5083, allocations: 86.65 MB / 0.5372 GB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.5085, allocations: 69.84 kB / 0.5373 GB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02639/0.5349, allocations: 9.899 MB / 0.547 GB, free: 4.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.535, allocations: 0 / 0.547 GB, free: 4.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.535, allocations: 15.94 kB / 0.547 GB, free: 4.27 MB / 362.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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001431/0.5364, allocations: 1.012 MB / 0.548 GB, free: 3.242 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.5365, allocations: 12.03 kB / 0.548 GB, free: 3.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.358e-05/0.5366, allocations: 55.31 kB / 0.548 GB, free: 3.176 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005054/0.5371, allocations: 343.6 kB / 0.5484 GB, free: 2.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.09e-05/0.5372, allocations: 31.48 kB / 0.5484 GB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.5372, allocations: 38.69 kB / 0.5484 GB, free: 2.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.538, allocations: 481.5 kB / 0.5489 GB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.538, allocations: 0 / 0.5489 GB, free: 2.414 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.5381, allocations: 17.75 kB / 0.5489 GB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.5381, allocations: 11.95 kB / 0.5489 GB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.5385, allocations: 260.7 kB / 0.5492 GB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.5401, allocations: 1.423 MB / 0.5505 GB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.5406, allocations: 297.5 kB / 0.5508 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.5408, allocations: 163 kB / 0.551 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.5409, allocations: 8.172 kB / 0.551 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003367/0.5412, allocations: 261.4 kB / 0.5512 GB, free: 280 kB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.953e-06/0.5412, allocations: 0 / 0.5512 GB, free: 280 kB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0007871/0.542, allocations: 470.3 kB / 0.5517 GB, free: 15.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.5421, allocations: 185.8 kB / 0.5519 GB, free: 15.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.5424, allocations: 221.2 kB / 0.5521 GB, free: 15.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.5424, allocations: 49.06 kB / 0.5521 GB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.5426, allocations: 207 kB / 0.5523 GB, free: 15.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.673e-05/0.5427, allocations: 102.1 kB / 0.5524 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-05/0.5427, allocations: 11.69 kB / 0.5524 GB, free: 15.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.5428, allocations: 346.1 kB / 0.5528 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.543, allocations: 111.8 kB / 0.5529 GB, free: 14.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/0.5434, allocations: 330.8 kB / 0.5532 GB, free: 14.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.5436, allocations: 173.7 kB / 0.5533 GB, free: 14.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5436, allocations: 4 kB / 0.5534 GB, free: 14.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006912/0.5443, allocations: 0.4885 MB / 0.5538 GB, free: 13.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.5444, allocations: 12.05 kB / 0.5538 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.5444, allocations: 16 kB / 0.5539 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.5444, allocations: 12 kB / 0.5539 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.5447, allocations: 79.77 kB / 0.5539 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.001e-05/0.5447, allocations: 15.94 kB / 0.554 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.5449, allocations: 35.5 kB / 0.554 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.5449, allocations: 32 kB / 0.554 GB, free: 13.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 59 ($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.addFloat.pkgOut[1].dummy,addFloat.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,$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,addInteger.u[1],$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,sampleTrigger.y,uDPReceive.internalTrigger,uDPSend.internalTrigger,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.000152/0.5451, allocations: 177.4 kB / 0.5542 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.5452, allocations: 31.62 kB / 0.5542 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005513/0.5457, allocations: 385.1 kB / 0.5546 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.5457, allocations: 8 kB / 0.5546 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5458, allocations: 3.984 kB / 0.5546 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.5458, allocations: 4 kB / 0.5546 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.5469, allocations: 0.931 MB / 0.5555 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5469, allocations: 3.984 kB / 0.5555 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.516e-05/0.547, allocations: 12 kB / 0.5555 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.547, allocations: 0 / 0.5555 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/0.5471, allocations: 19.98 kB / 0.5555 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.5471, allocations: 3.984 kB / 0.5556 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.5471, allocations: 7.938 kB / 0.5556 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.5478, allocations: 0.6383 MB / 0.5562 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.5479, allocations: 104.7 kB / 0.5563 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.554e-05/0.548, allocations: 15.94 kB / 0.5563 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.5481, allocations: 4 kB / 0.5563 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.5481, allocations: 23.91 kB / 0.5563 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.5482, allocations: 23.98 kB / 0.5563 GB, free: 11.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001034/0.5483, allocations: 143.1 kB / 0.5565 GB, free: 11.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5483, allocations: 4 kB / 0.5565 GB, free: 11.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005728/0.5489, allocations: 171.5 kB / 0.5567 GB, free: 11.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 38 (uDPSend.internalTrigger,uDPReceive.internalTrigger,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,sampleTrigger.y,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],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,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 12 * 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.0007136/0.5496, allocations: 369 kB / 0.557 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000561/0.5502, allocations: 353.9 kB / 0.5573 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5502, allocations: 0 / 0.5573 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.5504, allocations: 171 kB / 0.5575 GB, free: 10.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.5508, allocations: 60.08 kB / 0.5576 GB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.5525, allocations: 0.6867 MB / 0.5582 GB, free: 9.441 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.553, allocations: 0.8272 MB / 0.559 GB, free: 8.586 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.5531, allocations: 46.95 kB / 0.5591 GB, free: 8.539 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.727e-05/0.5532, allocations: 27.42 kB / 0.5591 GB, free: 8.512 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5532, allocations: 4 kB / 0.5591 GB, free: 8.508 MB / 378.7 MB Notification: Performance of Templates: time 0.009334/0.5625, allocations: 5.019 MB / 0.564 GB, free: 3.555 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe 2>&1)