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: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 181.5 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.265/1.265, allocations: 223.2 MB / 239.7 MB, free: 80 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 99.75 kB / 290.9 MB, free: 4.535 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.05315/0.05315, allocations: 12.04 MB / 354.1 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002968, allocations: 12 kB / 417.9 MB, free: 1.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2299, allocations: 53.34 MB / 471.2 MB, free: 65.14 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08717/0.3171, allocations: 83.59 MB / 0.5418 GB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.3174, allocations: 75.95 kB / 0.5419 GB, free: 13.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01867/0.3361, allocations: 7.343 MB / 0.5491 GB, free: 5.984 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3361, allocations: 0 / 0.5491 GB, free: 5.984 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.3361, allocations: 8 kB / 0.5491 GB, free: 5.977 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.001146/0.3373, allocations: 0.9628 MB / 0.55 GB, free: 4.922 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.3373, allocations: 8.031 kB / 0.55 GB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.597e-05/0.3374, allocations: 51.47 kB / 0.5501 GB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.3378, allocations: 295.5 kB / 0.5504 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.3378, allocations: 32.98 kB / 0.5504 GB, free: 4.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.3379, allocations: 32 kB / 0.5504 GB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/0.3385, allocations: 405.8 kB / 0.5508 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3385, allocations: 0 / 0.5508 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.3385, allocations: 16 kB / 0.5508 GB, free: 4.039 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.3386, allocations: 8 kB / 0.5508 GB, free: 4.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000364/0.3389, allocations: 219.6 kB / 0.551 GB, free: 3.816 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.3401, allocations: 1.065 MB / 0.5521 GB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.3405, allocations: 246.9 kB / 0.5523 GB, free: 2.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.3405, allocations: 4.172 kB / 0.5523 GB, free: 2.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.3408, allocations: 196.8 kB / 0.5525 GB, free: 2.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.3408, allocations: 0 / 0.5525 GB, free: 2.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008038/0.3416, allocations: 0.657 MB / 0.5532 GB, free: 1.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/0.3417, allocations: 152.4 kB / 0.5533 GB, free: 1.293 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.3418, allocations: 174.3 kB / 0.5535 GB, free: 1.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.3419, allocations: 41.69 kB / 0.5535 GB, free: 1.062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.342, allocations: 192.5 kB / 0.5537 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.3421, allocations: 75.12 kB / 0.5538 GB, free: 0.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.3421, allocations: 8 kB / 0.5538 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3422, allocations: 330.8 kB / 0.5541 GB, free: 464 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3423, allocations: 80.83 kB / 0.5542 GB, free: 384 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.3425, allocations: 223.8 kB / 0.5544 GB, free: 88 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1655/0.5081, allocations: 125.8 kB / 0.5545 GB, free: 87.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.5081, allocations: 1.906 kB / 0.5545 GB, free: 87.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00067/0.5088, allocations: 347.7 kB / 0.5548 GB, free: 87.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.5089, allocations: 10.61 kB / 0.5548 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.5089, allocations: 4.906 kB / 0.5548 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/0.5089, allocations: 7.906 kB / 0.5548 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.5092, allocations: 60.33 kB / 0.5549 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.5092, allocations: 9.094 kB / 0.5549 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.5093, allocations: 27.67 kB / 0.5549 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.5094, allocations: 21.38 kB / 0.555 GB, free: 87.74 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.0002807/0.5096, allocations: 212.5 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.5097, allocations: 27.28 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.5098, allocations: 16.31 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.5098, allocations: 3.469 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5098, allocations: 1.375 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5098, allocations: 7.25 kB / 0.5552 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009969/0.5108, allocations: 0.7423 MB / 0.5559 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5108, allocations: 0.875 kB / 0.5559 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.148e-05/0.5109, allocations: 8.531 kB / 0.5559 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.5109, allocations: 3.219 kB / 0.556 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.5109, allocations: 11.19 kB / 0.556 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5109, allocations: 1.469 kB / 0.556 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5109, allocations: 1.219 kB / 0.556 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006155/0.5115, allocations: 0.4892 MB / 0.5564 GB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.695e-05/0.5116, allocations: 102.1 kB / 0.5565 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.5116, allocations: 13.34 kB / 0.5566 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.5117, allocations: 7.781 kB / 0.5566 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.5118, allocations: 16.72 kB / 0.5566 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.5118, allocations: 16.64 kB / 0.5566 GB, free: 87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.67e-05/0.5119, allocations: 115.2 kB / 0.5567 GB, free: 86.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5119, allocations: 1.469 kB / 0.5567 GB, free: 86.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004864/0.5124, allocations: 125 kB / 0.5568 GB, free: 86.91 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.0003488/0.5128, allocations: 215 kB / 0.557 GB, free: 86.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.5132, allocations: 250.1 kB / 0.5573 GB, free: 86.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5132, allocations: 4.5 kB / 0.5573 GB, free: 86.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.5134, allocations: 117.1 kB / 0.5574 GB, free: 86.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.5137, allocations: 49.16 kB / 0.5574 GB, free: 86.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007598/0.5145, allocations: 0.5832 MB / 0.558 GB, free: 86.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.5147, allocations: 0.7878 MB / 0.5588 GB, free: 85.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.861e-05/0.5148, allocations: 32.83 kB / 0.5588 GB, free: 85.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.5148, allocations: 21.14 kB / 0.5588 GB, free: 85.71 MB / 378.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5148, allocations: 1.188 kB / 0.5588 GB, free: 85.71 MB / 378.7 MB Notification: Performance of Templates: time 0.006679/0.5215, allocations: 3.501 MB / 0.5622 GB, free: 85.47 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile (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 & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe 2>&1)