Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001903/0.001903, allocations: 171.8 kB / 16.8 MB, free: 5.004 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.427/1.427, allocations: 223.3 MB / 240.8 MB, free: 9.961 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.000878/0.0008781, allocations: 98.5 kB / 292 MB, free: 10.55 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.05438/0.05438, allocations: 12.04 MB / 355.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 15.98 kB / 419.2 MB, free: 53.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0794/0.07976, allocations: 53.34 MB / 472.5 MB, free: 220 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2874/0.3672, allocations: 85.12 MB / 0.5446 GB, free: 12.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.3675, allocations: 75.97 kB / 0.5446 GB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0254/0.3929, allocations: 9.307 MB / 0.5537 GB, free: 3.062 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3929, allocations: 0 / 0.5537 GB, free: 3.062 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.393, allocations: 16 kB / 0.5537 GB, free: 3.047 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getInteger.pkgOut[1].pkg = getInteger.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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001951/0.395, allocations: 1.171 MB / 0.5549 GB, free: 1.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.395, allocations: 11.97 kB / 0.5549 GB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.3951, allocations: 48.38 kB / 0.5549 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005638/0.3957, allocations: 361.2 kB / 0.5553 GB, free: 1.301 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.72e-05/0.3958, allocations: 41.36 kB / 0.5553 GB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.747e-05/0.3959, allocations: 44.38 kB / 0.5554 GB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008566/0.3967, allocations: 0.491 MB / 0.5558 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3968, allocations: 192 / 0.5558 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.908e-05/0.3968, allocations: 27.92 kB / 0.5559 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3968, allocations: 8 kB / 0.5559 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.3974, allocations: 290.4 kB / 0.5562 GB, free: 404 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.3991, allocations: 1.214 MB / 0.5573 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007521/0.3999, allocations: 375.8 kB / 0.5577 GB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.4001, allocations: 149.9 kB / 0.5578 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.4002, allocations: 8.188 kB / 0.5578 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.4006, allocations: 242.7 kB / 0.5581 GB, free: 14.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.525e-06/0.4006, allocations: 0 / 0.5581 GB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001008/0.4016, allocations: 0.5555 MB / 0.5586 GB, free: 13.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.498e-05/0.4017, allocations: 135 kB / 0.5588 GB, free: 13.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.4019, allocations: 234.7 kB / 0.559 GB, free: 13.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/0.402, allocations: 45.69 kB / 0.559 GB, free: 13.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.4021, allocations: 208.8 kB / 0.5592 GB, free: 13.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/0.4022, allocations: 94.89 kB / 0.5593 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.4022, allocations: 12 kB / 0.5593 GB, free: 12.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4024, allocations: 338.8 kB / 0.5596 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.4026, allocations: 113 kB / 0.5597 GB, free: 12.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003113/0.4029, allocations: 306.2 kB / 0.56 GB, free: 12.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005538/0.4035, allocations: 455.6 kB / 0.5605 GB, free: 11.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.4035, allocations: 0 / 0.5605 GB, free: 11.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000742/0.4042, allocations: 456.5 kB / 0.5609 GB, free: 11.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.4043, allocations: 8 kB / 0.5609 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.4043, allocations: 12.69 kB / 0.5609 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.4043, allocations: 8.328 kB / 0.5609 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.4046, allocations: 79.83 kB / 0.561 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.73e-05/0.4046, allocations: 15.94 kB / 0.561 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.4048, allocations: 35.69 kB / 0.5611 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.4048, allocations: 27.98 kB / 0.5611 GB, free: 10.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.getBoolean.dummy,getBoolean.dummy,$PRE.addBoolean.pkgOut[1].dummy,addBoolean.pkgOut[1].dummy,$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.getInteger.pkgOut[1].dummy,getInteger.pkgOut[1].dummy,$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,$whenCondition2,integerExpression.y,$whenCondition1,addBoolean.pkgOut[1].trigger,addInteger.u[1],integerExpression1.y,getBoolean.y[1],$PRE.getBoolean.y_int[1],getBoolean.y_int[1],addBoolean.u[1],addBoolean.u_int[1],$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002755/0.4051, allocations: 245.6 kB / 0.5613 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.4052, allocations: 31.66 kB / 0.5614 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.4052, allocations: 22.55 kB / 0.5614 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4053, allocations: 4 kB / 0.5614 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.4053, allocations: 4 kB / 0.5614 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4053, allocations: 3.938 kB / 0.5614 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.4065, allocations: 0.9312 MB / 0.5623 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.4065, allocations: 0 / 0.5623 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.627e-05/0.4066, allocations: 12 kB / 0.5623 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.4066, allocations: 4 kB / 0.5623 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.4066, allocations: 11.98 kB / 0.5623 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4066, allocations: 4 kB / 0.5623 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.4066, allocations: 7.922 kB / 0.5623 GB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007605/0.4074, allocations: 0.5621 MB / 0.5629 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.4075, allocations: 108.7 kB / 0.563 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.4075, allocations: 7.984 kB / 0.563 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.4077, allocations: 11.98 kB / 0.563 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.4078, allocations: 23.97 kB / 0.563 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.4078, allocations: 19.98 kB / 0.563 GB, free: 8.863 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.97e-05/0.4079, allocations: 136.5 kB / 0.5632 GB, free: 8.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4079, allocations: 0 / 0.5632 GB, free: 8.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005518/0.4085, allocations: 147.5 kB / 0.5633 GB, free: 8.586 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 39 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].trigger,$whenCondition2,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],integerExpression1.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.pkgOut[1].dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,addBoolean.pkgOut[1].dummy,addBoolean.u[1],addBoolean.u_int[1],getBoolean.y[1],getBoolean.y_int[1],getBoolean.dummy,booleanPulse.pulseStart,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 26 * 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.0004557/0.409, allocations: 228.7 kB / 0.5635 GB, free: 8.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.4095, allocations: 325.5 kB / 0.5638 GB, free: 8.051 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4095, allocations: 448 / 0.5638 GB, free: 8.051 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.4098, allocations: 160.7 kB / 0.564 GB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.4103, allocations: 77.39 kB / 0.5641 GB, free: 7.824 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.4118, allocations: 0.7882 MB / 0.5648 GB, free: 7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.4122, allocations: 0.8157 MB / 0.5656 GB, free: 6.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.4124, allocations: 46.95 kB / 0.5657 GB, free: 6.117 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.4125, allocations: 31.42 kB / 0.5657 GB, free: 6.086 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4125, allocations: 0 / 0.5657 GB, free: 6.086 MB / 378.7 MB Notification: Performance of Templates: time 0.009231/0.4217, allocations: 4.503 MB / 0.5701 GB, free: 1.625 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe 2>&1)