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.001523/0.001523, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.394/1.394, allocations: 221.5 MB / 230 MB, free: 7.539 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.0007996/0.0007997, allocations: 94.98 kB / 280.9 MB, free: 5.309 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.05235/0.05235, allocations: 11.92 MB / 343.6 MB, free: 3.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.03e-05/2.034e-05, allocations: 2.781 kB / 403.2 MB, free: 45.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 53.36 MB / 456.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.456/0.5747, allocations: 82.86 MB / 0.5268 GB, free: 16.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.575, allocations: 71.8 kB / 0.5269 GB, free: 16.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01958/0.5946, allocations: 7.268 MB / 0.534 GB, free: 16.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.5946, allocations: 0 / 0.534 GB, free: 16.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.5947, allocations: 15.78 kB / 0.534 GB, free: 16.05 MB / 362.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.001136/0.5958, allocations: 0.9397 MB / 0.5349 GB, free: 15.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.5959, allocations: 9 kB / 0.5349 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/0.5959, allocations: 42.64 kB / 0.5349 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.5963, allocations: 296.9 kB / 0.5352 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.5963, allocations: 21.66 kB / 0.5352 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.5964, allocations: 25.36 kB / 0.5353 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003649/0.5967, allocations: 193.1 kB / 0.5355 GB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.5973, allocations: 343.1 kB / 0.5358 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.5973, allocations: 5.375 kB / 0.5358 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.5973, allocations: 3.578 kB / 0.5358 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.5974, allocations: 9 kB / 0.5358 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.5984, allocations: 0.9837 MB / 0.5368 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.5988, allocations: 228.4 kB / 0.537 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.599, allocations: 105.2 kB / 0.5371 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.5991, allocations: 3.312 kB / 0.5371 GB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.5993, allocations: 184.9 kB / 0.5373 GB, free: 14.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.783e-06/0.5994, allocations: 0 / 0.5373 GB, free: 14.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009605/0.6003, allocations: 341.3 kB / 0.5376 GB, free: 14.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.6004, allocations: 146.9 kB / 0.5377 GB, free: 14.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.6005, allocations: 173.9 kB / 0.5379 GB, free: 13.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.6006, allocations: 40.91 kB / 0.5379 GB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.193e-05/0.6007, allocations: 196.7 kB / 0.5381 GB, free: 13.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.945e-05/0.6007, allocations: 62.64 kB / 0.5382 GB, free: 13.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.6008, allocations: 1.75 kB / 0.5382 GB, free: 13.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.6008, allocations: 333.2 kB / 0.5385 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.601, allocations: 74.09 kB / 0.5386 GB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.6012, allocations: 211.8 kB / 0.5388 GB, free: 13.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.6014, allocations: 117 kB / 0.5389 GB, free: 13.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6014, allocations: 1.906 kB / 0.5389 GB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005128/0.6019, allocations: 309.1 kB / 0.5392 GB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.6019, allocations: 6.375 kB / 0.5392 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.6019, allocations: 4.5 kB / 0.5392 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.602, allocations: 8.312 kB / 0.5392 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.6022, allocations: 65.64 kB / 0.5393 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.6022, allocations: 6.75 kB / 0.5393 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.6023, allocations: 11.38 kB / 0.5393 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.6024, allocations: 20.73 kB / 0.5393 GB, free: 13.11 MB / 362.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 () * 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.0001047/0.6025, allocations: 152.1 kB / 0.5394 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006124/0.6031, allocations: 349.1 kB / 0.5398 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.6031, allocations: 20.67 kB / 0.5398 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.558e-05/0.6032, allocations: 26.92 kB / 0.5398 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.6032, allocations: 2.5 kB / 0.5398 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6032, allocations: 6.531 kB / 0.5398 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.6032, allocations: 4 kB / 0.5398 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.6045, allocations: 0.662 MB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.6045, allocations: 1.5 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.811e-05/0.6046, allocations: 12.23 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.6046, allocations: 3.344 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.6046, allocations: 9.781 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.6046, allocations: 1.656 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.6046, allocations: 1.688 kB / 0.5405 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.6053, allocations: 499.2 kB / 0.541 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.6054, allocations: 101.3 kB / 0.5411 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.6054, allocations: 8.766 kB / 0.5411 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.554e-05/0.6055, allocations: 2.984 kB / 0.5411 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.6056, allocations: 26.02 kB / 0.5411 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.6056, allocations: 14.59 kB / 0.5411 GB, free: 28.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.427e-05/0.6057, allocations: 108.9 kB / 0.5412 GB, free: 28.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6057, allocations: 0 / 0.5412 GB, free: 28.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004821/0.6062, allocations: 113 kB / 0.5413 GB, free: 28.17 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) * 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.001223/0.6074, allocations: 1.363 MB / 0.5427 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.6078, allocations: 214.9 kB / 0.5429 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6078, allocations: 3.938 kB / 0.5429 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.608, allocations: 101.9 kB / 0.543 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.6083, allocations: 43.77 kB / 0.543 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009007/0.6092, allocations: 461.8 kB / 0.5435 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.6096, allocations: 0.7882 MB / 0.5442 GB, free: 26.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.47e-05/0.6097, allocations: 27.31 kB / 0.5443 GB, free: 26.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.6098, allocations: 86.56 kB / 0.5443 GB, free: 26.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6099, allocations: 0 / 0.5443 GB, free: 26.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.6374, allocations: 5.291 MB / 0.5495 GB, free: 25.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.6376, allocations: 186.5 kB / 0.5497 GB, free: 25.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.418, allocations: 0 / 0.5497 GB, free: 25.58 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)