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.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,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.001178/0.001178, allocations: 181 kB / 15.8 MB, free: 6.336 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.297/1.297, allocations: 223.2 MB / 239.7 MB, free: 76 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.0008039/0.000804, allocations: 102.5 kB / 290.9 MB, free: 4.562 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.05462/0.05462, allocations: 12.04 MB / 354.1 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.0003041, allocations: 11.98 kB / 417.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1956, allocations: 53.36 MB / 471.2 MB, free: 65.14 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08784/0.2834, allocations: 85.08 MB / 0.5433 GB, free: 11.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.2837, allocations: 83.94 kB / 0.5434 GB, free: 11.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02413/0.3078, allocations: 9.301 MB / 0.5525 GB, free: 2.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3079, allocations: 4 kB / 0.5525 GB, free: 2.523 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.3079, allocations: 16 kB / 0.5525 GB, free: 2.508 MB / 378.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.001494/0.3094, allocations: 1.179 MB / 0.5536 GB, free: 1.211 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.3094, allocations: 8.031 kB / 0.5536 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.727e-05/0.3095, allocations: 59.31 kB / 0.5537 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.31, allocations: 344.1 kB / 0.554 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/0.3101, allocations: 40.98 kB / 0.5541 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.248e-05/0.3102, allocations: 47.98 kB / 0.5541 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007572/0.3109, allocations: 0.4904 MB / 0.5546 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3109, allocations: 0 / 0.5546 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.311, allocations: 19.98 kB / 0.5546 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.311, allocations: 19.94 kB / 0.5546 GB, free: 136 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1788/0.4898, allocations: 281.6 kB / 0.5549 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.492, allocations: 1.212 MB / 0.5561 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008183/0.4928, allocations: 368.8 kB / 0.5564 GB, free: 86.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.4929, allocations: 7.172 kB / 0.5564 GB, free: 86.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003921/0.4933, allocations: 240.6 kB / 0.5567 GB, free: 86.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 3.948e-06/0.4933, allocations: 0.7188 kB / 0.5567 GB, free: 86.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001103/0.4944, allocations: 0.8694 MB / 0.5575 GB, free: 85.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.4945, allocations: 130.2 kB / 0.5576 GB, free: 85.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.4947, allocations: 208.8 kB / 0.5578 GB, free: 85.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.4948, allocations: 43.86 kB / 0.5579 GB, free: 85.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.4949, allocations: 216.7 kB / 0.5581 GB, free: 85.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.692e-05/0.495, allocations: 91.78 kB / 0.5582 GB, free: 85.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.495, allocations: 19.77 kB / 0.5582 GB, free: 85.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.577e-05/0.4951, allocations: 341.6 kB / 0.5585 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.4953, allocations: 110.1 kB / 0.5586 GB, free: 84.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.4955, allocations: 300.7 kB / 0.5589 GB, free: 84.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.4957, allocations: 166.2 kB / 0.5591 GB, free: 84.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4958, allocations: 2.312 kB / 0.5591 GB, free: 84.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007013/0.4965, allocations: 457.5 kB / 0.5595 GB, free: 84.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.4965, allocations: 9.188 kB / 0.5595 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4965, allocations: 6.5 kB / 0.5595 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.4965, allocations: 13.81 kB / 0.5595 GB, free: 84.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4968, allocations: 74.94 kB / 0.5596 GB, free: 84.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.4968, allocations: 14.34 kB / 0.5596 GB, free: 84.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.497, allocations: 38.89 kB / 0.5597 GB, free: 84.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.4971, allocations: 24.72 kB / 0.5597 GB, free: 84.63 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.000247/0.4973, allocations: 248.4 kB / 0.5599 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.4974, allocations: 27.44 kB / 0.5599 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.4974, allocations: 23.83 kB / 0.56 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4974, allocations: 3.906 kB / 0.56 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.4975, allocations: 1.031 kB / 0.56 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4975, allocations: 2.781 kB / 0.56 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.4987, allocations: 0.9249 MB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4987, allocations: 6.781 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.4987, allocations: 13.69 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4988, allocations: 1.375 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.4988, allocations: 15.59 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4988, allocations: 1.375 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4988, allocations: 5.312 kB / 0.5609 GB, free: 84.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.4995, allocations: 0.5868 MB / 0.5615 GB, free: 83.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.4996, allocations: 102.6 kB / 0.5616 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.4996, allocations: 8.969 kB / 0.5616 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.4998, allocations: 14.69 kB / 0.5616 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.4998, allocations: 28.58 kB / 0.5616 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.4999, allocations: 16.22 kB / 0.5616 GB, free: 83.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.553e-05/0.5, allocations: 135.6 kB / 0.5618 GB, free: 83.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5, allocations: 0 / 0.5618 GB, free: 83.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005509/0.5005, allocations: 148.1 kB / 0.5619 GB, free: 83.75 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.0003696/0.5009, allocations: 227.5 kB / 0.5621 GB, free: 83.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005198/0.5014, allocations: 330 kB / 0.5625 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.5015, allocations: 1.375 kB / 0.5625 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002306/0.5017, allocations: 156.9 kB / 0.5626 GB, free: 83.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.5021, allocations: 68.78 kB / 0.5627 GB, free: 83.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.5033, allocations: 0.7954 MB / 0.5634 GB, free: 83.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.5037, allocations: 0.8295 MB / 0.5643 GB, free: 82.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.5038, allocations: 44.28 kB / 0.5643 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.5039, allocations: 25.86 kB / 0.5643 GB, free: 82.3 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.5039, allocations: 0 / 0.5643 GB, free: 82.3 MB / 378.7 MB Notification: Performance of Templates: time 0.007621/0.5115, allocations: 4.466 MB / 0.5687 GB, free: 81.95 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)