Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 168.3 kB / 16.8 MB, free: 4.898 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.357/1.357, allocations: 223.3 MB / 240.8 MB, free: 11.71 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.000712/0.0007121, allocations: 94.75 kB / 292 MB, free: 10.8 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.05384/0.05384, allocations: 12.04 MB / 355.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003825, allocations: 16.62 kB / 419.2 MB, free: 53.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07786/0.07827, allocations: 53.34 MB / 472.5 MB, free: 292 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3691/0.4474, allocations: 86.24 MB / 0.5457 GB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.4477, allocations: 75.95 kB / 0.5457 GB, free: 11.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03665/0.4844, allocations: 9.775 MB / 0.5553 GB, free: 1.555 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4844, allocations: 0 / 0.5553 GB, free: 1.555 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.602e-05/0.4845, allocations: 15.94 kB / 0.5553 GB, free: 1.539 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 = lcmSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = lcmReceive.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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001723/0.4862, allocations: 1.05 MB / 0.5563 GB, free: 392 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.4862, allocations: 8.031 kB / 0.5563 GB, free: 384 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.812e-05/0.4863, allocations: 48.38 kB / 0.5564 GB, free: 336 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.4869, allocations: 344.5 kB / 0.5567 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.487, allocations: 29.38 kB / 0.5567 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.493e-05/0.487, allocations: 44.36 kB / 0.5568 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.4879, allocations: 479.9 kB / 0.5572 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4879, allocations: 192 / 0.5572 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.488, allocations: 23.92 kB / 0.5573 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.488, allocations: 16 kB / 0.5573 GB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.4885, allocations: 251.7 kB / 0.5575 GB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.4902, allocations: 1.359 MB / 0.5588 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004577/0.4907, allocations: 290.4 kB / 0.5591 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002148/0.4909, allocations: 166.5 kB / 0.5593 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.4909, allocations: 7.984 kB / 0.5593 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.4912, allocations: 240.7 kB / 0.5595 GB, free: 12.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.663e-06/0.4913, allocations: 4 kB / 0.5595 GB, free: 12.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009198/0.4922, allocations: 0.573 MB / 0.5601 GB, free: 12.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.4923, allocations: 160.4 kB / 0.5602 GB, free: 12.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.4925, allocations: 264.7 kB / 0.5605 GB, free: 11.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.4926, allocations: 37.7 kB / 0.5605 GB, free: 11.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.4927, allocations: 212.3 kB / 0.5607 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.764e-05/0.4928, allocations: 98.83 kB / 0.5608 GB, free: 11.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.861e-05/0.4928, allocations: 12 kB / 0.5608 GB, free: 11.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4929, allocations: 350.7 kB / 0.5612 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.4931, allocations: 117 kB / 0.5613 GB, free: 11.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.4935, allocations: 310.4 kB / 0.5616 GB, free: 10.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005313/0.494, allocations: 480.7 kB / 0.562 GB, free: 10.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.494, allocations: 0 / 0.562 GB, free: 10.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006789/0.4947, allocations: 480.7 kB / 0.5625 GB, free: 9.625 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.4947, allocations: 8 kB / 0.5625 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.4947, allocations: 8 kB / 0.5625 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.4947, allocations: 8.094 kB / 0.5625 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.495, allocations: 84 kB / 0.5626 GB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.495, allocations: 15.92 kB / 0.5626 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.4952, allocations: 36.22 kB / 0.5626 GB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.4952, allocations: 32 kB / 0.5627 GB, free: 9.438 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.lcmSend.dummy,lcmSend.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.lcmReceive.pkgOut.dummy,lcmReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,lcmSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.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 (62): * Single equations (assignments): 62 * 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.0002318/0.4955, allocations: 238.8 kB / 0.5629 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.4955, allocations: 31.62 kB / 0.5629 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003643/0.4959, allocations: 237.9 kB / 0.5631 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4959, allocations: 4 kB / 0.5632 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4959, allocations: 4 kB / 0.5632 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4959, allocations: 3.984 kB / 0.5632 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.4971, allocations: 1.005 MB / 0.5641 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4971, allocations: 0 / 0.5641 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-05/0.4972, allocations: 11.94 kB / 0.5642 GB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4972, allocations: 8 kB / 0.5642 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.4972, allocations: 11.98 kB / 0.5642 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.4972, allocations: 11.92 kB / 0.5642 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4972, allocations: 0 / 0.5642 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007253/0.498, allocations: 0.6568 MB / 0.5648 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.015e-05/0.498, allocations: 104.8 kB / 0.5649 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.4981, allocations: 11.98 kB / 0.5649 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.4982, allocations: 11.92 kB / 0.5649 GB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/0.4983, allocations: 15.98 kB / 0.565 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/0.4983, allocations: 19.98 kB / 0.565 GB, free: 6.953 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001206/0.4984, allocations: 152.5 kB / 0.5651 GB, free: 6.801 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4984, allocations: 0 / 0.5651 GB, free: 6.801 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005414/0.499, allocations: 171.5 kB / 0.5653 GB, free: 6.633 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: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,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,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.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.0006995/0.4997, allocations: 395.8 kB / 0.5657 GB, free: 6.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005183/0.5002, allocations: 353.7 kB / 0.566 GB, free: 5.973 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5002, allocations: 0 / 0.566 GB, free: 5.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002373/0.5005, allocations: 167.9 kB / 0.5662 GB, free: 5.809 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.5011, allocations: 78.8 kB / 0.5662 GB, free: 5.734 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.5023, allocations: 0.8189 MB / 0.567 GB, free: 4.875 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.5026, allocations: 0.8151 MB / 0.5678 GB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000126/0.5028, allocations: 50.94 kB / 0.5679 GB, free: 3.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.5028, allocations: 31.42 kB / 0.5679 GB, free: 3.949 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5028, allocations: 0 / 0.5679 GB, free: 3.949 MB / 378.7 MB Notification: Performance of Templates: time 0.008506/0.5113, allocations: 5.09 MB / 0.5729 GB, free: 14.89 MB / 394.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe 2>&1)