Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 110.6 kB / 17.14 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 190.1 kB / 18.06 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 241.8 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05778/0.05778, allocations: 12.04 MB / 304 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 67.88 kB / 420.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07872/0.07989, allocations: 52.32 MB / 473.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String): time 0.003773/0.0837, allocations: 2.627 MB / 475.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.08522, allocations: 0.9112 MB / 476.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.423e-05/0.08532, allocations: 7.938 kB / 476.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002117/0.08553, allocations: 63.41 kB / 476.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.08578, allocations: 75.44 kB / 476.8 MB, free: 9.16 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:139:5-153:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitPack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitPack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:98:7-105:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.resetPointer' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.resetPointer'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:155:5-169:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitUnpack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitUnpack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:52:7-61:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addString' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addString'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:119:7-128:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getString' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getString'. Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.08633, allocations: 255.3 kB / 477 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.08666, allocations: 331.2 kB / 477.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.08694, allocations: 201.9 kB / 477.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.0871, allocations: 179.4 kB / 477.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.08731, allocations: 195.2 kB / 477.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.08737, allocations: 40 kB / 477.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002533/0.08763, allocations: 195.8 kB / 478.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.08778, allocations: 139.6 kB / 478.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.08792, allocations: 175.1 kB / 478.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006857/0.08862, allocations: 0.5957 MB / 479 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.08863, allocations: 4 kB / 479 MB, free: 6.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.08864, allocations: 4 kB / 479 MB, free: 6.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.08865, allocations: 0 / 479 MB, free: 6.871 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getString.pkgOut[1].pkg = getString.pkgIn.pkg addString.pkgOut[1].pkg = addString.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg getString.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = getString.pkgIn.pkg packInt.pkgOut[1].pkg = addString.pkgIn.pkg addString.pkgOut[1].pkg = addInteger.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg packager.pkgOut.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.001346/0.09, allocations: 1.029 MB / 480.1 MB, free: 5.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.09004, allocations: 8.031 kB / 480.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.484e-05/0.09012, allocations: 40.45 kB / 480.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/0.09043, allocations: 288.3 kB / 480.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.09047, allocations: 25.38 kB / 480.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.832e-05/0.09053, allocations: 39.92 kB / 480.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.0912, allocations: 409.9 kB / 480.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.09123, allocations: 7.938 kB / 480.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.09127, allocations: 11.98 kB / 480.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.09128, allocations: 12 kB / 480.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.09168, allocations: 218.1 kB / 481.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.09295, allocations: 1.014 MB / 482.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.0933, allocations: 239.6 kB / 482.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.09347, allocations: 118.6 kB / 482.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.631e-05/0.09358, allocations: 89.11 kB / 482.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/0.09384, allocations: 192.4 kB / 482.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.794e-06/0.09385, allocations: 0 / 482.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007338/0.09459, allocations: 433.1 kB / 483.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.09466, allocations: 122.8 kB / 483.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.09483, allocations: 190.1 kB / 483.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.09487, allocations: 37.69 kB / 483.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.09499, allocations: 188.3 kB / 483.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.09505, allocations: 63.2 kB / 483.7 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.09516, allocations: 90.05 kB / 483.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.09528, allocations: 338.8 kB / 484.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.09542, allocations: 84.7 kB / 484.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.09573, allocations: 232 kB / 484.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005034/0.09624, allocations: 362.7 kB / 484.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.09625, allocations: 7.938 kB / 484.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000514/0.09677, allocations: 356.8 kB / 485.2 MB, free: 240 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.0968, allocations: 8 kB / 485.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.09681, allocations: 4.594 kB / 485.2 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.09683, allocations: 12 kB / 485.2 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.09704, allocations: 59.84 kB / 485.3 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.09706, allocations: 7.938 kB / 485.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.0972, allocations: 35.62 kB / 485.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.09722, allocations: 16 kB / 485.3 MB, free: 96 kB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: getString.data:DISCRETE(fixed = true ) "Output string (read from package)" type: String Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 44 (getString.dummy,$PRE.getString.dummy,getString.pkgOut[1].dummy,$PRE.getString.pkgOut[1].dummy,addString.pkgOut[1].dummy,$PRE.addString.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],unpackInt.dummy,$PRE.unpackInt.dummy,unpackInt.y,$PRE.unpackInt.y,unpackInt.pkgOut[1].dummy,$PRE.unpackInt.pkgOut[1].dummy,resetPointer.dummy,$PRE.resetPointer.dummy,resetPointer.pkgOut[1].dummy,$PRE.resetPointer.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,getString.pkgOut[1].trigger,$whenCondition1,integerExpression.y,addInteger.u[1],$PRE.getString.data,findString.y,getString.data,getString.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,addString.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.09745, allocations: 203.1 kB / 485.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.0975, allocations: 23.78 kB / 485.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004134/0.09792, allocations: 273.4 kB / 485.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.09794, allocations: 3.984 kB / 485.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.09794, allocations: 0 / 485.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.098, allocations: 100.8 kB / 485.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.09803, allocations: 3.984 kB / 485.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.014e-05/0.09813, allocations: 8 kB / 485.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.483e-05/0.09817, allocations: 15.97 kB / 485.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006671/0.09884, allocations: 0.5738 MB / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006372/0.09949, allocations: 0.6562 MB / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001625/0.09966, allocations: 111.9 kB / 487.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.987e-05/0.09974, allocations: 116.4 kB / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of Backend: time 2.1e-07/0.09975, allocations: 0 / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.1008, allocations: 413.6 kB / 487.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of SimCode: time 0.0008851/0.1017, allocations: 0.9118 MB / 488.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of Templates: time 0.007634/0.1094, allocations: 4.314 MB / 493 MB, free: 8.352 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe 2>&1)