Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.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_ExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger",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.002371/0.002371, allocations: 178.7 kB / 15.8 MB, free: 6.34 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.648/1.648, allocations: 223.2 MB / 239.7 MB, free: 1.789 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.0009822/0.0009822, allocations: 91.67 kB / 290.9 MB, free: 13.93 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.05504/0.05505, allocations: 12.05 MB / 354 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003236, allocations: 8.25 kB / 418 MB, free: 87.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 53.36 MB / 471.3 MB, free: 37.35 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/0.5062, allocations: 83.59 MB / 0.5419 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.5065, allocations: 71.58 kB / 0.542 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.5252, allocations: 7.352 MB / 0.5492 GB, free: 30.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.5253, allocations: 0 / 0.5492 GB, free: 30.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.986e-05/0.5253, allocations: 11.75 kB / 0.5492 GB, free: 30.56 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001188/0.5265, allocations: 0.9585 MB / 0.5501 GB, free: 29.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5265, allocations: 7.688 kB / 0.5501 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.437e-05/0.5266, allocations: 79.03 kB / 0.5502 GB, free: 29.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.866e-05/0.5267, allocations: 42.45 kB / 0.5502 GB, free: 29.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.5271, allocations: 301.5 kB / 0.5505 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.5271, allocations: 29.28 kB / 0.5505 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.5272, allocations: 36.34 kB / 0.5506 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005668/0.5277, allocations: 398.2 kB / 0.551 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5277, allocations: 0 / 0.551 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.5278, allocations: 17.3 kB / 0.551 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.5278, allocations: 7.844 kB / 0.551 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.5282, allocations: 227.7 kB / 0.5512 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.5293, allocations: 1.063 MB / 0.5522 GB, free: 28.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/0.5297, allocations: 247.8 kB / 0.5525 GB, free: 28.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.5298, allocations: 7.312 kB / 0.5525 GB, free: 28.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002933/0.5301, allocations: 195.9 kB / 0.5527 GB, free: 28.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.844e-06/0.5301, allocations: 0 / 0.5527 GB, free: 28.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007773/0.5309, allocations: 0.6619 MB / 0.5533 GB, free: 28.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.531, allocations: 149.1 kB / 0.5535 GB, free: 28.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.5311, allocations: 182.1 kB / 0.5536 GB, free: 28.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.5311, allocations: 36.92 kB / 0.5537 GB, free: 28.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.778e-05/0.5312, allocations: 196.9 kB / 0.5539 GB, free: 27.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.5313, allocations: 66.17 kB / 0.5539 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.5313, allocations: 6.812 kB / 0.5539 GB, free: 27.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.738e-05/0.5314, allocations: 334.6 kB / 0.5542 GB, free: 27.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.5315, allocations: 77.39 kB / 0.5543 GB, free: 27.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.5317, allocations: 228.3 kB / 0.5545 GB, free: 27.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.5318, allocations: 124.2 kB / 0.5547 GB, free: 27.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.5318, allocations: 1.469 kB / 0.5547 GB, free: 27.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004862/0.5323, allocations: 358.6 kB / 0.555 GB, free: 27.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.5324, allocations: 7.5 kB / 0.555 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.5324, allocations: 4.406 kB / 0.555 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.5324, allocations: 10.59 kB / 0.555 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.5326, allocations: 61.38 kB / 0.5551 GB, free: 27.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.5326, allocations: 10.61 kB / 0.5551 GB, free: 27.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.5328, allocations: 30.56 kB / 0.5551 GB, free: 27.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.5328, allocations: 19.06 kB / 0.5551 GB, free: 27.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.unpackInt1.dummy,unpackInt1.dummy,$PRE.unpackInt1.y,unpackInt1.y,$PRE.unpackInt1.pkgOut[1].dummy,unpackInt1.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.unpackInt.dummy,unpackInt.dummy,$PRE.unpackInt.y,unpackInt.y,$PRE.unpackInt.pkgOut[1].dummy,unpackInt.pkgOut[1].dummy,$PRE.resetPointer.dummy,resetPointer.dummy,$PRE.resetPointer.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],iExp2.y,$whenCondition1,$PRE.iExp.y,iExp.y,packager.trigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.000227/0.533, allocations: 208.8 kB / 0.5553 GB, free: 27.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.5331, allocations: 21.72 kB / 0.5554 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.674e-05/0.5331, allocations: 15.44 kB / 0.5554 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.5331, allocations: 3.781 kB / 0.5554 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5332, allocations: 0 / 0.5554 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5332, allocations: 3.938 kB / 0.5554 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009002/0.5341, allocations: 0.7495 MB / 0.5561 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5341, allocations: 3.938 kB / 0.5561 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.908e-05/0.5342, allocations: 10.98 kB / 0.5561 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.5342, allocations: 0 / 0.5561 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.5342, allocations: 11.14 kB / 0.5561 GB, free: 26.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5342, allocations: 7.906 kB / 0.5561 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5342, allocations: 3.953 kB / 0.5561 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005271/0.5347, allocations: 0.4962 MB / 0.5566 GB, free: 26.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.5348, allocations: 96.58 kB / 0.5567 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.5348, allocations: 9.609 kB / 0.5567 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.5349, allocations: 1.875 kB / 0.5567 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.535, allocations: 25.14 kB / 0.5568 GB, free: 26.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.535, allocations: 10.91 kB / 0.5568 GB, free: 26.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.042e-05/0.5351, allocations: 119.1 kB / 0.5569 GB, free: 26.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5351, allocations: 0 / 0.5569 GB, free: 26.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004751/0.5356, allocations: 116.7 kB / 0.557 GB, free: 26.31 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: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * 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.001267/0.5369, allocations: 1.359 MB / 0.5583 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.5373, allocations: 248.8 kB / 0.5586 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5373, allocations: 1.656 kB / 0.5586 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.5375, allocations: 112.7 kB / 0.5587 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.5379, allocations: 49.42 kB / 0.5587 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.5416, allocations: 4.616 MB / 0.5632 GB, free: 21.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.5421, allocations: 0.7907 MB / 0.564 GB, free: 20.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.5423, allocations: 28.39 kB / 0.564 GB, free: 20.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.5424, allocations: 82.67 kB / 0.5641 GB, free: 20.6 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5424, allocations: 0 / 0.5641 GB, free: 20.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.5645, allocations: 5.654 MB / 0.5696 GB, free: 19.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.5647, allocations: 224.9 kB / 0.5698 GB, free: 19.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.471, allocations: 0 / 0.5698 GB, free: 19.11 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe 2>&1)