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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 177.1 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.5 MB / 230 MB, free: 7.492 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.0008775/0.0008775, allocations: 88.52 kB / 280.9 MB, free: 5.254 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.04945/0.04945, allocations: 11.91 MB / 343.6 MB, free: 3.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.585e-05, allocations: 2.875 kB / 403.2 MB, free: 45.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 53.36 MB / 456.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3951/0.5059, allocations: 85.98 MB / 0.5298 GB, free: 16.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.5063, allocations: 77 kB / 0.5299 GB, free: 16.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.5336, allocations: 9.861 MB / 0.5395 GB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.5336, allocations: 0 / 0.5395 GB, free: 15.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.834e-05/0.5337, allocations: 15.34 kB / 0.5396 GB, free: 15.56 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.001449/0.5351, allocations: 1.015 MB / 0.5405 GB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5352, allocations: 15.47 kB / 0.5406 GB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.096e-05/0.5353, allocations: 53.33 kB / 0.5406 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004837/0.5358, allocations: 342.8 kB / 0.5409 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.5358, allocations: 19.66 kB / 0.541 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.5359, allocations: 24.62 kB / 0.541 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004023/0.5363, allocations: 231.1 kB / 0.5412 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.5369, allocations: 434.8 kB / 0.5416 GB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.5369, allocations: 3.875 kB / 0.5416 GB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.537, allocations: 3.953 kB / 0.5416 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.537, allocations: 11.62 kB / 0.5416 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.5382, allocations: 1.322 MB / 0.5429 GB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.5386, allocations: 283.4 kB / 0.5432 GB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.5388, allocations: 151.6 kB / 0.5433 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.5388, allocations: 6.5 kB / 0.5433 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002694/0.5391, allocations: 248.2 kB / 0.5436 GB, free: 13.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.625e-06/0.5391, allocations: 0 / 0.5436 GB, free: 13.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.001013/0.5401, allocations: 497.3 kB / 0.5441 GB, free: 13.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.5402, allocations: 178.6 kB / 0.5442 GB, free: 13.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.5404, allocations: 209.5 kB / 0.5444 GB, free: 12.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.5404, allocations: 36.3 kB / 0.5445 GB, free: 12.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.877e-05/0.5405, allocations: 213.7 kB / 0.5447 GB, free: 12.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.5406, allocations: 103.2 kB / 0.5448 GB, free: 12.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.5406, allocations: 3.391 kB / 0.5448 GB, free: 12.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.096e-05/0.5407, allocations: 340.6 kB / 0.5451 GB, free: 12.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.5409, allocations: 104.4 kB / 0.5452 GB, free: 12.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.5412, allocations: 319.2 kB / 0.5455 GB, free: 12.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.5416, allocations: 175.7 kB / 0.5457 GB, free: 12.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.5416, allocations: 0 / 0.5457 GB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008511/0.5425, allocations: 448.2 kB / 0.5461 GB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.5425, allocations: 7.531 kB / 0.5461 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.5425, allocations: 7.5 kB / 0.5461 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.5426, allocations: 11.66 kB / 0.5461 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.5429, allocations: 92.14 kB / 0.5462 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.5429, allocations: 12.91 kB / 0.5462 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.5431, allocations: 26.41 kB / 0.5462 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/0.5431, allocations: 29.34 kB / 0.5463 GB, free: 12.03 MB / 362.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.0007692/0.5439, allocations: 165.1 kB / 0.5464 GB, free: 27.9 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008623/0.5448, allocations: 489.1 kB / 0.5469 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.5448, allocations: 27.34 kB / 0.5469 GB, free: 27.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006712/0.5455, allocations: 373.9 kB / 0.5473 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.5455, allocations: 3.781 kB / 0.5473 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.5455, allocations: 1.688 kB / 0.5473 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5455, allocations: 4.5 kB / 0.5473 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.5468, allocations: 0.8571 MB / 0.5481 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.5468, allocations: 1.812 kB / 0.5481 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.749e-05/0.5469, allocations: 19.88 kB / 0.5481 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.5469, allocations: 3.5 kB / 0.5482 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.5469, allocations: 11.44 kB / 0.5482 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.5469, allocations: 1.719 kB / 0.5482 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5469, allocations: 1.406 kB / 0.5482 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008755/0.5478, allocations: 0.6564 MB / 0.5488 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.282e-05/0.5479, allocations: 118.9 kB / 0.5489 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.5479, allocations: 18.61 kB / 0.5489 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.548, allocations: 3.953 kB / 0.5489 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.5481, allocations: 23.66 kB / 0.549 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.5481, allocations: 19.59 kB / 0.549 GB, free: 27.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.814e-05/0.5482, allocations: 137.4 kB / 0.5491 GB, free: 27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5483, allocations: 0 / 0.5491 GB, free: 27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005616/0.5488, allocations: 157.5 kB / 0.5493 GB, free: 26.96 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.001966/0.5508, allocations: 1.72 MB / 0.5509 GB, free: 25.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000448/0.5513, allocations: 326.3 kB / 0.5513 GB, free: 25.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5513, allocations: 0 / 0.5513 GB, free: 25.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.5515, allocations: 155.8 kB / 0.5514 GB, free: 25.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.5519, allocations: 67.59 kB / 0.5515 GB, free: 25.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.554, allocations: 0.8094 MB / 0.5523 GB, free: 25.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.5545, allocations: 0.824 MB / 0.5531 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.5547, allocations: 51.03 kB / 0.5531 GB, free: 24.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.5548, allocations: 112.9 kB / 0.5532 GB, free: 24.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5548, allocations: 0 / 0.5532 GB, free: 24.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.5808, allocations: 7.475 MB / 0.5605 GB, free: 24.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.581, allocations: 218.9 kB / 0.5607 GB, free: 23.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.568, allocations: 6 kB / 0.5607 GB, free: 23.83 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPExternalTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_UDPExternalTrigger.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.pipe 2>&1)