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.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_LCM,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_LCM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_LCM",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.0009666/0.0009669, allocations: 180.9 kB / 8.049 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.34/1.34, allocations: 221.5 MB / 230 MB, free: 7.582 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.0008174/0.0008173, allocations: 85.02 kB / 280.9 MB, free: 5.336 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.05126/0.05126, allocations: 11.92 MB / 343.6 MB, free: 3.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.301e-05/2.361e-05, allocations: 2.969 kB / 403.2 MB, free: 45.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1171, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5745, allocations: 85.48 MB / 0.5294 GB, free: 16.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5748, allocations: 73.55 kB / 0.5294 GB, free: 16.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02794/0.6027, allocations: 9.682 MB / 0.5389 GB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.6028, allocations: 4 kB / 0.5389 GB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.831e-05/0.6028, allocations: 11.66 kB / 0.5389 GB, free: 15.91 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.002582/0.6054, allocations: 1.012 MB / 0.5399 GB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.15e-05/0.6055, allocations: 10.03 kB / 0.5399 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.6058, allocations: 52.44 kB / 0.5399 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000927/0.6067, allocations: 340.4 kB / 0.5403 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.178e-05/0.6068, allocations: 17.3 kB / 0.5403 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.715e-05/0.6069, allocations: 29.61 kB / 0.5403 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006555/0.6076, allocations: 221.3 kB / 0.5405 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008654/0.6085, allocations: 420.5 kB / 0.5409 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.6085, allocations: 0 / 0.5409 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.873e-05/0.6086, allocations: 7.016 kB / 0.5409 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.6086, allocations: 11.67 kB / 0.5409 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.6103, allocations: 1.269 MB / 0.5422 GB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004317/0.6108, allocations: 273.2 kB / 0.5424 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.611, allocations: 152 kB / 0.5426 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.611, allocations: 7.125 kB / 0.5426 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003264/0.6113, allocations: 242.7 kB / 0.5428 GB, free: 13.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.196e-06/0.6114, allocations: 0 / 0.5428 GB, free: 13.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001141/0.6125, allocations: 455.7 kB / 0.5433 GB, free: 13.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.653e-05/0.6126, allocations: 150.4 kB / 0.5434 GB, free: 13.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002942/0.6129, allocations: 229 kB / 0.5436 GB, free: 13.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.613, allocations: 38.7 kB / 0.5437 GB, free: 13.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.6132, allocations: 217 kB / 0.5439 GB, free: 13.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.6133, allocations: 94.56 kB / 0.544 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.6133, allocations: 3.938 kB / 0.544 GB, free: 13.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6134, allocations: 353.2 kB / 0.5443 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.6136, allocations: 102.5 kB / 0.5444 GB, free: 12.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.6139, allocations: 289.1 kB / 0.5447 GB, free: 12.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.6143, allocations: 184.1 kB / 0.5448 GB, free: 12.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.6143, allocations: 4 kB / 0.5449 GB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007348/0.6151, allocations: 432 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.6151, allocations: 7.75 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.6151, allocations: 3.906 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.6152, allocations: 11.62 kB / 0.5453 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.6154, allocations: 77.03 kB / 0.5454 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.6154, allocations: 14.84 kB / 0.5454 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.6156, allocations: 23.34 kB / 0.5454 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.6157, allocations: 22.66 kB / 0.5454 GB, free: 12.6 MB / 362.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 () * 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.0007671/0.6164, allocations: 166.3 kB / 0.5456 GB, free: 28.46 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000861/0.6173, allocations: 468.1 kB / 0.546 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/0.6174, allocations: 31.12 kB / 0.5461 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003949/0.6178, allocations: 226.1 kB / 0.5463 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.6178, allocations: 3.781 kB / 0.5463 GB, free: 28.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.6178, allocations: 4 kB / 0.5463 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.6178, allocations: 6.438 kB / 0.5463 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.6191, allocations: 0.9136 MB / 0.5472 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.6191, allocations: 1.812 kB / 0.5472 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.707e-05/0.6192, allocations: 17.97 kB / 0.5472 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.6192, allocations: 3.75 kB / 0.5472 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.6192, allocations: 7.422 kB / 0.5472 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.6193, allocations: 11.3 kB / 0.5472 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.6193, allocations: 2.766 kB / 0.5472 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/0.6203, allocations: 0.6823 MB / 0.5479 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.6203, allocations: 105.2 kB / 0.548 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.732e-05/0.6204, allocations: 9.297 kB / 0.548 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.6205, allocations: 5.656 kB / 0.548 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.6206, allocations: 26.48 kB / 0.548 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.6207, allocations: 17.52 kB / 0.548 GB, free: 27.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.6208, allocations: 138.6 kB / 0.5482 GB, free: 27.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6208, allocations: 0 / 0.5482 GB, free: 27.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006844/0.6215, allocations: 157.5 kB / 0.5483 GB, free: 27.43 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 () * 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.002013/0.6236, allocations: 1.725 MB / 0.55 GB, free: 26.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.624, allocations: 316.6 kB / 0.5503 GB, free: 26.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6241, allocations: 4.125 kB / 0.5503 GB, free: 26.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.6242, allocations: 149.8 kB / 0.5505 GB, free: 26.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000511/0.6248, allocations: 77.22 kB / 0.5505 GB, free: 26.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.6261, allocations: 0.6425 MB / 0.5512 GB, free: 25.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.6265, allocations: 0.8289 MB / 0.552 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.6267, allocations: 48.22 kB / 0.552 GB, free: 25.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.6268, allocations: 116.5 kB / 0.5521 GB, free: 25.25 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6268, allocations: 0 / 0.5521 GB, free: 25.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.6552, allocations: 7.6 MB / 0.5595 GB, free: 24.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.6554, allocations: 195 kB / 0.5597 GB, free: 24.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.724, allocations: 0 / 0.5597 GB, free: 24.34 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_LCM_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_LCM.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe 2>&1)