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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.0008506/0.0008507, allocations: 169.9 kB / 16.8 MB, free: 4.902 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.276/1.276, allocations: 223.3 MB / 240.8 MB, free: 9.957 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.0007719/0.0007717, allocations: 102.8 kB / 292 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05431/0.05431, allocations: 12.04 MB / 355.1 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004105, allocations: 20.61 kB / 419.2 MB, free: 53.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.08874, allocations: 53.35 MB / 472.5 MB, free: 200 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3158/0.4046, allocations: 86.73 MB / 0.5461 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.4049, allocations: 88.78 kB / 0.5462 GB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02605/0.4309, allocations: 9.956 MB / 0.5559 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4309, allocations: 3.938 kB / 0.556 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.431, allocations: 16 kB / 0.556 GB, free: 0.7461 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.001439/0.4324, allocations: 1.031 MB / 0.557 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.4325, allocations: 15.97 kB / 0.557 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.788e-05/0.4326, allocations: 56.38 kB / 0.557 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004453/0.433, allocations: 341.4 kB / 0.5574 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.4331, allocations: 33.36 kB / 0.5574 GB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.601e-05/0.4332, allocations: 40.38 kB / 0.5574 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.4339, allocations: 494 kB / 0.5579 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.4339, allocations: 192 / 0.5579 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.434, allocations: 23.92 kB / 0.5579 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.434, allocations: 12 kB / 0.5579 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004473/0.4344, allocations: 265.9 kB / 0.5582 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.436, allocations: 1.425 MB / 0.5596 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005061/0.4365, allocations: 312.3 kB / 0.5599 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.4368, allocations: 160.5 kB / 0.56 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.4368, allocations: 7.984 kB / 0.56 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003637/0.4372, allocations: 256 kB / 0.5603 GB, free: 11.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.014e-06/0.4372, allocations: 0 / 0.5603 GB, free: 11.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001016/0.4382, allocations: 0.5849 MB / 0.5609 GB, free: 11.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.4383, allocations: 186.1 kB / 0.561 GB, free: 11.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/0.4386, allocations: 243.8 kB / 0.5613 GB, free: 10.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.4386, allocations: 45.69 kB / 0.5613 GB, free: 10.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.4388, allocations: 209.2 kB / 0.5615 GB, free: 10.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/0.4389, allocations: 102.7 kB / 0.5616 GB, free: 10.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.4389, allocations: 12 kB / 0.5616 GB, free: 10.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4391, allocations: 346.8 kB / 0.562 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.4393, allocations: 117 kB / 0.5621 GB, free: 10.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.4396, allocations: 337.3 kB / 0.5624 GB, free: 9.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006138/0.4403, allocations: 0.4912 MB / 0.5629 GB, free: 9.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4403, allocations: 4 kB / 0.5629 GB, free: 9.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007454/0.441, allocations: 0.5007 MB / 0.5634 GB, free: 8.559 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4411, allocations: 12 kB / 0.5634 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4411, allocations: 4 kB / 0.5634 GB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.4411, allocations: 12 kB / 0.5634 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.4414, allocations: 87.83 kB / 0.5635 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.946e-05/0.4414, allocations: 15.94 kB / 0.5635 GB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.4416, allocations: 36.12 kB / 0.5635 GB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.4416, allocations: 31.98 kB / 0.5636 GB, free: 8.363 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 () * Number of clocked 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.000275/0.4419, allocations: 241.8 kB / 0.5638 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.442, allocations: 35.61 kB / 0.5638 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.4426, allocations: 383.1 kB / 0.5642 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.4426, allocations: 12 kB / 0.5642 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.4426, allocations: 0 / 0.5642 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.4426, allocations: 0 / 0.5642 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.4438, allocations: 0.9313 MB / 0.5651 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4438, allocations: 4 kB / 0.5651 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.136e-05/0.4439, allocations: 8 kB / 0.5651 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4439, allocations: 4 kB / 0.5651 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.4439, allocations: 15.98 kB / 0.5651 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.4439, allocations: 7.984 kB / 0.5651 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.444, allocations: 3.938 kB / 0.5651 GB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.4447, allocations: 0.5884 MB / 0.5657 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.385e-05/0.4448, allocations: 112.6 kB / 0.5658 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.72e-05/0.4449, allocations: 11.98 kB / 0.5658 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.445, allocations: 15.92 kB / 0.5659 GB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.4451, allocations: 19.98 kB / 0.5659 GB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.4451, allocations: 15.98 kB / 0.5659 GB, free: 5.855 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.4452, allocations: 139.2 kB / 0.566 GB, free: 5.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.613e-06/0.4452, allocations: 0 / 0.566 GB, free: 5.719 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006183/0.4459, allocations: 179.5 kB / 0.5662 GB, free: 5.543 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 () * Number of clocked 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.0007321/0.4466, allocations: 382.4 kB / 0.5666 GB, free: 5.223 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005785/0.4472, allocations: 367.4 kB / 0.5669 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4472, allocations: 1.812 kB / 0.5669 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002602/0.4475, allocations: 167.8 kB / 0.5671 GB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.448, allocations: 67.88 kB / 0.5671 GB, free: 4.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.45, allocations: 0.9698 MB / 0.5681 GB, free: 3.625 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.4504, allocations: 0.8154 MB / 0.5689 GB, free: 2.785 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000133/0.4505, allocations: 46.95 kB / 0.5689 GB, free: 2.742 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.746e-05/0.4506, allocations: 35.42 kB / 0.569 GB, free: 2.707 MB / 378.7 MB Notification: Performance of SimCode: time 2.244e-06/0.4506, allocations: 0 / 0.569 GB, free: 2.707 MB / 378.7 MB Notification: Performance of Templates: time 0.00938/0.46, allocations: 5.041 MB / 0.5739 GB, free: 13.73 MB / 394.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)