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.00134/0.00134, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.223/1.223, allocations: 221.5 MB / 230 MB, free: 7.598 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.001021/0.00102, allocations: 97.75 kB / 280.9 MB, free: 5.34 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.04861/0.04861, allocations: 11.91 MB / 343.6 MB, free: 3.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.604e-05/1.607e-05, allocations: 3 kB / 403.1 MB, free: 45.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08165/0.08168, allocations: 53.36 MB / 456.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.4219, allocations: 84.36 MB / 0.5282 GB, free: 16.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4222, allocations: 72.84 kB / 0.5282 GB, free: 16.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02529/0.4475, allocations: 9.209 MB / 0.5372 GB, free: 16.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4475, allocations: 0 / 0.5372 GB, free: 16.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.17e-05/0.4476, allocations: 19.53 kB / 0.5372 GB, free: 16.15 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.002212/0.4498, allocations: 1.152 MB / 0.5384 GB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.4499, allocations: 8.781 kB / 0.5384 GB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.4501, allocations: 55.2 kB / 0.5384 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006716/0.4508, allocations: 345.7 kB / 0.5388 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.4509, allocations: 21.5 kB / 0.5388 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/0.4509, allocations: 36.67 kB / 0.5388 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006061/0.4516, allocations: 253.9 kB / 0.5391 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007343/0.4523, allocations: 441.8 kB / 0.5395 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4523, allocations: 0 / 0.5395 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.4524, allocations: 9.875 kB / 0.5395 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4524, allocations: 10 kB / 0.5395 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.4539, allocations: 1.108 MB / 0.5406 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006132/0.4545, allocations: 349.3 kB / 0.5409 GB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.4547, allocations: 140.1 kB / 0.541 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.4547, allocations: 4.062 kB / 0.541 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.455, allocations: 230.4 kB / 0.5413 GB, free: 14.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.953e-06/0.455, allocations: 0 / 0.5413 GB, free: 14.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001004/0.456, allocations: 462.7 kB / 0.5417 GB, free: 14.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.4561, allocations: 133 kB / 0.5418 GB, free: 14.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.4563, allocations: 203.1 kB / 0.542 GB, free: 13.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.4563, allocations: 38.83 kB / 0.5421 GB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.4565, allocations: 217.1 kB / 0.5423 GB, free: 13.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.4565, allocations: 90.39 kB / 0.5424 GB, free: 13.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.882e-05/0.4566, allocations: 0 / 0.5424 GB, free: 13.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.299e-05/0.4566, allocations: 340.1 kB / 0.5427 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.4568, allocations: 94 kB / 0.5428 GB, free: 13.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.457, allocations: 284.8 kB / 0.543 GB, free: 13.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.4573, allocations: 158.6 kB / 0.5432 GB, free: 13.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.4574, allocations: 7.844 kB / 0.5432 GB, free: 13.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005795/0.4579, allocations: 401.8 kB / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.458, allocations: 11.78 kB / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.458, allocations: 7.812 kB / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.458, allocations: 17.91 kB / 0.5436 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.4583, allocations: 67.84 kB / 0.5437 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.4583, allocations: 11.98 kB / 0.5437 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.4585, allocations: 29.44 kB / 0.5437 GB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.4585, allocations: 21.34 kB / 0.5437 GB, free: 13.07 MB / 362.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 () * 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.000139/0.4587, allocations: 171.2 kB / 0.5439 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.4587, allocations: 31.28 kB / 0.5439 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.094e-05/0.4588, allocations: 28.94 kB / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.4588, allocations: 5.031 kB / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.4588, allocations: 1.781 kB / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4588, allocations: 0 / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.4599, allocations: 0.8322 MB / 0.5448 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.4599, allocations: 3.953 kB / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.583e-05/0.46, allocations: 14.47 kB / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.46, allocations: 0 / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.46, allocations: 16.06 kB / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.46, allocations: 0 / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.46, allocations: 0 / 0.5448 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007715/0.4608, allocations: 0.5833 MB / 0.5454 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.4609, allocations: 104.4 kB / 0.5455 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.4609, allocations: 6.609 kB / 0.5455 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.4611, allocations: 16.36 kB / 0.5455 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.4612, allocations: 34.42 kB / 0.5455 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.4612, allocations: 20.84 kB / 0.5456 GB, free: 12.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.982e-05/0.4613, allocations: 125.6 kB / 0.5457 GB, free: 12.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4613, allocations: 0 / 0.5457 GB, free: 12.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005044/0.4618, allocations: 132 kB / 0.5458 GB, free: 12.17 MB / 362.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 () * 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.0004453/0.4622, allocations: 221.4 kB / 0.546 GB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.4627, allocations: 300.2 kB / 0.5463 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4627, allocations: 3.938 kB / 0.5463 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.4629, allocations: 142.5 kB / 0.5464 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004888/0.4634, allocations: 65.34 kB / 0.5465 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.4646, allocations: 0.5014 MB / 0.547 GB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008821/0.4654, allocations: 0.8256 MB / 0.5478 GB, free: 27.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.4656, allocations: 43.3 kB / 0.5478 GB, free: 27.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.577e-05/0.4657, allocations: 28.62 kB / 0.5479 GB, free: 27.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4657, allocations: 0 / 0.5479 GB, free: 27.09 MB / 378.7 MB Notification: Performance of Templates: time 0.007463/0.4731, allocations: 4.342 MB / 0.5521 GB, free: 26.68 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)