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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001234/0.001234, allocations: 172.4 kB / 16.8 MB, free: 4.906 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.379/1.379, allocations: 223.3 MB / 240.8 MB, free: 11.73 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007572/0.0007571, allocations: 95.98 kB / 292 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05278/0.05278, allocations: 12.03 MB / 355.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 12.84 kB / 419.2 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08829/0.08866, allocations: 53.35 MB / 472.5 MB, free: 252 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2829/0.3717, allocations: 83.6 MB / 0.5431 GB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3719, allocations: 82.58 kB / 0.5432 GB, free: 13.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01898/0.3909, allocations: 7.345 MB / 0.5503 GB, free: 6.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.391, allocations: 0 / 0.5503 GB, free: 6.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.391, allocations: 12 kB / 0.5504 GB, free: 6.535 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.001184/0.3922, allocations: 0.9452 MB / 0.5513 GB, free: 5.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3922, allocations: 8.031 kB / 0.5513 GB, free: 5.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.525e-05/0.3923, allocations: 44.45 kB / 0.5513 GB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.3927, allocations: 304.7 kB / 0.5516 GB, free: 5.105 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.3927, allocations: 33.36 kB / 0.5516 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/0.3928, allocations: 32.38 kB / 0.5517 GB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.3934, allocations: 402.4 kB / 0.5521 GB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3934, allocations: 8.125 kB / 0.5521 GB, free: 4.621 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.3935, allocations: 11.94 kB / 0.5521 GB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3935, allocations: 12 kB / 0.5521 GB, free: 4.598 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/0.3939, allocations: 219.6 kB / 0.5523 GB, free: 4.383 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3951, allocations: 1.062 MB / 0.5533 GB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.3955, allocations: 250.8 kB / 0.5536 GB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.3956, allocations: 114.7 kB / 0.5537 GB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3956, allocations: 7.984 kB / 0.5537 GB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.3959, allocations: 203.1 kB / 0.5539 GB, free: 2.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.3959, allocations: 3.938 kB / 0.5539 GB, free: 2.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007289/0.3967, allocations: 440.3 kB / 0.5543 GB, free: 2.188 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/0.3967, allocations: 148.5 kB / 0.5545 GB, free: 2.012 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.3969, allocations: 187 kB / 0.5546 GB, free: 1.812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.397, allocations: 49.81 kB / 0.5547 GB, free: 1.758 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.65e-05/0.3971, allocations: 176.4 kB / 0.5548 GB, free: 1.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.514e-05/0.3971, allocations: 71.19 kB / 0.5549 GB, free: 1.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.406e-05/0.3972, allocations: 8 kB / 0.5549 GB, free: 1.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3973, allocations: 330.8 kB / 0.5552 GB, free: 1.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.3974, allocations: 84.77 kB / 0.5553 GB, free: 1.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.3976, allocations: 227.2 kB / 0.5555 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.398, allocations: 350.5 kB / 0.5559 GB, free: 400 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.398, allocations: 0 / 0.5559 GB, free: 400 kB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004822/0.3985, allocations: 349 kB / 0.5562 GB, free: 44 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3985, allocations: 11.98 kB / 0.5562 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3985, allocations: 4 kB / 0.5562 GB, free: 28 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3986, allocations: 8 kB / 0.5562 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.3988, allocations: 51.92 kB / 0.5563 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.3988, allocations: 19.86 kB / 0.5563 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.3989, allocations: 28.16 kB / 0.5563 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.399, allocations: 24 kB / 0.5563 GB, free: 15.9 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.0001913/0.3992, allocations: 207.2 kB / 0.5565 GB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.3992, allocations: 19.72 kB / 0.5566 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.3992, allocations: 21.17 kB / 0.5566 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3993, allocations: 4 kB / 0.5566 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3993, allocations: 4 kB / 0.5566 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3993, allocations: 4 kB / 0.5566 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008203/0.4001, allocations: 0.7401 MB / 0.5573 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.4001, allocations: 0 / 0.5573 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.503e-05/0.4002, allocations: 11.92 kB / 0.5573 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.4002, allocations: 4 kB / 0.5573 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.4002, allocations: 7.984 kB / 0.5573 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.4002, allocations: 8.188 kB / 0.5573 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4002, allocations: 0 / 0.5573 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005353/0.4008, allocations: 479.2 kB / 0.5578 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.4008, allocations: 92.86 kB / 0.5579 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.4009, allocations: 7.984 kB / 0.5579 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.65e-05/0.401, allocations: 8 kB / 0.5579 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.401, allocations: 23.91 kB / 0.5579 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.4011, allocations: 19.92 kB / 0.5579 GB, free: 14.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.754e-05/0.4012, allocations: 113 kB / 0.5581 GB, free: 14.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4012, allocations: 0 / 0.5581 GB, free: 14.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004465/0.4016, allocations: 127.6 kB / 0.5582 GB, free: 13.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.0003578/0.402, allocations: 219.1 kB / 0.5584 GB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003879/0.4024, allocations: 243.8 kB / 0.5586 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4024, allocations: 0 / 0.5586 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.4026, allocations: 122.7 kB / 0.5587 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.403, allocations: 49.06 kB / 0.5588 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008667/0.4039, allocations: 0.5934 MB / 0.5594 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.4042, allocations: 0.7833 MB / 0.5601 GB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.962e-05/0.4043, allocations: 30.7 kB / 0.5602 GB, free: 11.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.4044, allocations: 19.44 kB / 0.5602 GB, free: 11.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4044, allocations: 4 kB / 0.5602 GB, free: 11.81 MB / 378.7 MB Notification: Performance of Templates: time 0.006932/0.4113, allocations: 3.525 MB / 0.5636 GB, free: 8.348 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)