Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.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_MQTT,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_MQTT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_MQTT",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.001203/0.001203, allocations: 177.6 kB / 8.045 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.386/1.386, allocations: 221.5 MB / 230 MB, free: 7.574 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.000853/0.000853, allocations: 93.44 kB / 280.9 MB, free: 5.316 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.04973/0.04973, allocations: 11.91 MB / 343.6 MB, free: 3.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.925e-05/1.929e-05, allocations: 4.406 kB / 403.2 MB, free: 45.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1201, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4448/0.5649, allocations: 86.57 MB / 0.5304 GB, free: 16.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5653, allocations: 71.75 kB / 0.5305 GB, free: 16.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03112/0.5964, allocations: 12.4 MB / 0.5426 GB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.5964, allocations: 3.938 kB / 0.5426 GB, free: 15.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.12e-05/0.5965, allocations: 15.47 kB / 0.5426 GB, free: 15.79 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 = mqttSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = mqttReceive.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.001581/0.5981, allocations: 1.07 MB / 0.5437 GB, free: 15.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5981, allocations: 11.34 kB / 0.5437 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.5982, allocations: 60.98 kB / 0.5437 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.5987, allocations: 372.3 kB / 0.5441 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.5988, allocations: 19.47 kB / 0.5441 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.5988, allocations: 24.38 kB / 0.5441 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004249/0.5993, allocations: 226.4 kB / 0.5443 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.5999, allocations: 412.2 kB / 0.5447 GB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.6, allocations: 3.984 kB / 0.5447 GB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.6, allocations: 14.19 kB / 0.5448 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.6, allocations: 15.45 kB / 0.5448 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.6013, allocations: 1.295 MB / 0.546 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004519/0.6018, allocations: 272.6 kB / 0.5463 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.602, allocations: 144.5 kB / 0.5464 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.6021, allocations: 11.27 kB / 0.5464 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003432/0.6024, allocations: 239.1 kB / 0.5467 GB, free: 13.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.6024, allocations: 0 / 0.5467 GB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001164/0.6036, allocations: 472.1 kB / 0.5471 GB, free: 13.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/0.6037, allocations: 162.7 kB / 0.5473 GB, free: 13.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/0.6042, allocations: 350.5 kB / 0.5476 GB, free: 13.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.6042, allocations: 36.94 kB / 0.5476 GB, free: 13.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.6044, allocations: 239.5 kB / 0.5479 GB, free: 13.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.229e-05/0.6045, allocations: 97.81 kB / 0.548 GB, free: 13.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.6045, allocations: 3.75 kB / 0.548 GB, free: 13.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.6046, allocations: 353.6 kB / 0.5483 GB, free: 12.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.6048, allocations: 113 kB / 0.5484 GB, free: 12.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.605, allocations: 302.5 kB / 0.5487 GB, free: 12.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.6054, allocations: 183.9 kB / 0.5489 GB, free: 12.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.6054, allocations: 3.875 kB / 0.5489 GB, free: 12.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007462/0.6061, allocations: 454.7 kB / 0.5493 GB, free: 12.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.6062, allocations: 8.312 kB / 0.5493 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.6062, allocations: 6.688 kB / 0.5493 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.121e-05/0.6062, allocations: 10.06 kB / 0.5493 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.6065, allocations: 76.61 kB / 0.5494 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.6065, allocations: 15.47 kB / 0.5494 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.6067, allocations: 31.09 kB / 0.5495 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.6067, allocations: 29.75 kB / 0.5495 GB, free: 12.4 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.mqttSend.dummy,mqttSend.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.mqttReceive.pkgOut.dummy,mqttReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,mqttReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,mqttSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,mqttSend.pkgIn.userPkgBitSize,mqttSend.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.0007204/0.6075, allocations: 162.3 kB / 0.5496 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008016/0.6083, allocations: 474.2 kB / 0.5501 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.6083, allocations: 38.84 kB / 0.5501 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003946/0.6087, allocations: 237.4 kB / 0.5504 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.6088, allocations: 3.875 kB / 0.5504 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.6088, allocations: 3.75 kB / 0.5504 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.6088, allocations: 6.484 kB / 0.5504 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.6101, allocations: 0.9691 MB / 0.5513 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.6101, allocations: 0 / 0.5513 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.6102, allocations: 23.03 kB / 0.5513 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.6102, allocations: 3.781 kB / 0.5513 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.6102, allocations: 10.3 kB / 0.5514 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.6102, allocations: 7.891 kB / 0.5514 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.6102, allocations: 0 / 0.5514 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.6113, allocations: 0.6909 MB / 0.552 GB, free: 27.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.6114, allocations: 123 kB / 0.5522 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.6114, allocations: 6.953 kB / 0.5522 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.6116, allocations: 10.55 kB / 0.5522 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.6117, allocations: 13.95 kB / 0.5522 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.575e-05/0.6117, allocations: 18.17 kB / 0.5522 GB, free: 27.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002393/0.612, allocations: 220.3 kB / 0.5524 GB, free: 27.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.612, allocations: 3.938 kB / 0.5524 GB, free: 27.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007768/0.6128, allocations: 172 kB / 0.5526 GB, free: 27.21 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,mqttReceive.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,mqttReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,mqttSend.bufferSize,mqttSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,mqttSend.pkgIn.userPkgBitSize,mqttSend.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.002691/0.6155, allocations: 1.792 MB / 0.5543 GB, free: 26.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.616, allocations: 320.9 kB / 0.5546 GB, free: 26.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.616, allocations: 0.5625 kB / 0.5546 GB, free: 26.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.6162, allocations: 158.6 kB / 0.5548 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000745/0.617, allocations: 99.12 kB / 0.5549 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.6186, allocations: 0.7445 MB / 0.5556 GB, free: 25.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.6191, allocations: 0.8505 MB / 0.5564 GB, free: 25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002063/0.6193, allocations: 64.25 kB / 0.5565 GB, free: 24.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.6196, allocations: 141.3 kB / 0.5566 GB, free: 24.97 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6196, allocations: 7.938 kB / 0.5566 GB, free: 24.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.6502, allocations: 9.571 MB / 0.566 GB, free: 22.35 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.6505, allocations: 197.2 kB / 0.5662 GB, free: 22.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.958, allocations: 0 / 0.5662 GB, free: 22.09 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_MQTT_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_MQTT.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe 2>&1)