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.001228/0.001228, allocations: 181.4 kB / 13.23 MB, free: 2.086 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.225/1.225, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.0009481/0.0009483, allocations: 99.88 kB / 286.1 MB, free: 12.98 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.05149/0.05149, allocations: 11.89 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.222e-05/2.224e-05, allocations: 4 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.08272, allocations: 53.35 MB / 463.5 MB, free: 4.898 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3174/0.4002, allocations: 85.02 MB / 0.5356 GB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.4004, allocations: 75.2 kB / 0.5357 GB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02341/0.4239, allocations: 9.254 MB / 0.5447 GB, free: 6.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4239, allocations: 0 / 0.5447 GB, free: 6.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.865e-05/0.4239, allocations: 23.94 kB / 0.5448 GB, free: 6.41 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.001636/0.4256, allocations: 1.155 MB / 0.5459 GB, free: 5.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4256, allocations: 8.031 kB / 0.5459 GB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.62e-05/0.4257, allocations: 55.38 kB / 0.546 GB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.4262, allocations: 347.1 kB / 0.5463 GB, free: 4.828 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.935e-05/0.4263, allocations: 41.55 kB / 0.5463 GB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.4263, allocations: 45.88 kB / 0.5464 GB, free: 4.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007964/0.4271, allocations: 494.6 kB / 0.5468 GB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4272, allocations: 0 / 0.5468 GB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.4272, allocations: 21.36 kB / 0.5469 GB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.4272, allocations: 15.95 kB / 0.5469 GB, free: 4.383 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.4277, allocations: 282.9 kB / 0.5471 GB, free: 4.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.4293, allocations: 1.219 MB / 0.5483 GB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006815/0.43, allocations: 367.1 kB / 0.5487 GB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.4302, allocations: 145 kB / 0.5488 GB, free: 2.727 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.4303, allocations: 8.188 kB / 0.5488 GB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003207/0.4306, allocations: 230.6 kB / 0.5491 GB, free: 2.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.703e-06/0.4306, allocations: 0 / 0.5491 GB, free: 2.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007214/0.4313, allocations: 456 kB / 0.5495 GB, free: 2.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.4314, allocations: 134.3 kB / 0.5496 GB, free: 2.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.4316, allocations: 209.3 kB / 0.5498 GB, free: 1.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.4316, allocations: 41.08 kB / 0.5499 GB, free: 1.789 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.4318, allocations: 222.4 kB / 0.5501 GB, free: 1.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.875e-05/0.4318, allocations: 89.27 kB / 0.5502 GB, free: 1.523 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.4319, allocations: 13.5 kB / 0.5502 GB, free: 1.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.432, allocations: 340.1 kB / 0.5505 GB, free: 1.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.4322, allocations: 102.4 kB / 0.5506 GB, free: 1.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.4325, allocations: 301.4 kB / 0.5509 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.4327, allocations: 157.6 kB / 0.551 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4327, allocations: 11.89 kB / 0.551 GB, free: 0.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006225/0.4334, allocations: 459.4 kB / 0.5515 GB, free: 308 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.4334, allocations: 4 kB / 0.5515 GB, free: 304 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4334, allocations: 8.75 kB / 0.5515 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.071e-05/0.4335, allocations: 12 kB / 0.5515 GB, free: 284 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.4337, allocations: 78.97 kB / 0.5516 GB, free: 208 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.4337, allocations: 15.92 kB / 0.5516 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.4339, allocations: 37.56 kB / 0.5516 GB, free: 164 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.434, allocations: 23.38 kB / 0.5516 GB, free: 144 kB / 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.0001652/0.4341, allocations: 177.7 kB / 0.5518 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.4342, allocations: 31.67 kB / 0.5518 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.4342, allocations: 24.98 kB / 0.5519 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.4343, allocations: 4 kB / 0.5519 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4343, allocations: 0 / 0.5519 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4343, allocations: 0 / 0.5519 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.4354, allocations: 0.9301 MB / 0.5528 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4354, allocations: 4 kB / 0.5528 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.4354, allocations: 8 kB / 0.5528 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4354, allocations: 4 kB / 0.5528 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.4355, allocations: 11.8 kB / 0.5528 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.4355, allocations: 7.984 kB / 0.5528 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4355, allocations: 0 / 0.5528 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007143/0.4362, allocations: 0.5758 MB / 0.5534 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.4363, allocations: 100.8 kB / 0.5535 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.4363, allocations: 7.984 kB / 0.5535 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.4365, allocations: 15.98 kB / 0.5535 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.708e-05/0.4366, allocations: 27.92 kB / 0.5535 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.4366, allocations: 23.97 kB / 0.5535 GB, free: 14.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001002/0.4367, allocations: 127.3 kB / 0.5537 GB, free: 14.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4367, allocations: 4 kB / 0.5537 GB, free: 14.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004807/0.4372, allocations: 139.6 kB / 0.5538 GB, free: 14.05 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 () * 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.0004038/0.4376, allocations: 234.8 kB / 0.554 GB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.4382, allocations: 329 kB / 0.5543 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4382, allocations: 4.062 kB / 0.5543 GB, free: 13.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.4384, allocations: 151.8 kB / 0.5545 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.000411/0.4388, allocations: 64.11 kB / 0.5546 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009624/0.4398, allocations: 0.5157 MB / 0.5551 GB, free: 12.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.4401, allocations: 0.8352 MB / 0.5559 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.4403, allocations: 43.31 kB / 0.5559 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.4403, allocations: 27.44 kB / 0.5559 GB, free: 11.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4403, allocations: 0 / 0.5559 GB, free: 11.81 MB / 378.7 MB Notification: Performance of Templates: time 0.008472/0.4488, allocations: 4.479 MB / 0.5603 GB, free: 7.367 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)