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/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,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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 115.6 kB / 17.14 MB, free: 5.91 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.0009862/0.0009863, allocations: 196.2 kB / 18.07 MB, free: 4.992 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.364/1.364, allocations: 222.9 MB / 241.8 MB, free: 15.06 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.05923/0.05923, allocations: 12.05 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 59.91 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1019, allocations: 52.33 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager): time 0.004218/0.1062, allocations: 2.826 MB / 475.9 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.108, allocations: 1.075 MB / 477 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.1082, allocations: 15.88 kB / 477 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.1085, allocations: 71.27 kB / 477.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.1087, allocations: 59.39 kB / 477.1 MB, free: 8.773 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0007407/0.1094, allocations: 287.3 kB / 477.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005059/0.11, allocations: 462.6 kB / 477.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.1103, allocations: 268.5 kB / 478.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.1106, allocations: 231.2 kB / 478.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.1109, allocations: 262.8 kB / 478.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.677e-05/0.111, allocations: 56 kB / 478.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002351/0.1113, allocations: 139.9 kB / 478.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1115, allocations: 183.5 kB / 479 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.1117, allocations: 246.7 kB / 479.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000672/0.1124, allocations: 0.6774 MB / 479.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1124, allocations: 4 kB / 479.9 MB, free: 5.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1124, allocations: 4 kB / 479.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1124, allocations: 0 / 479.9 MB, free: 5.988 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: 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 addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getInteger.pkgOut[1].pkg = getBoolean.pkgIn.pkg addInteger.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg packInt1.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt1.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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001864/0.1143, allocations: 1.269 MB / 481.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.1143, allocations: 8.031 kB / 481.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1144, allocations: 60.36 kB / 481.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.1148, allocations: 324.3 kB / 481.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.1149, allocations: 41.36 kB / 481.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.1149, allocations: 48.36 kB / 481.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007629/0.1157, allocations: 0.4985 MB / 482.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1157, allocations: 0 / 482.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/0.1158, allocations: 23.98 kB / 482.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1158, allocations: 8 kB / 482.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005003/0.1163, allocations: 298.4 kB / 482.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.1178, allocations: 1.201 MB / 483.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.1186, allocations: 355.8 kB / 484 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.1188, allocations: 150.8 kB / 484.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.1188, allocations: 7.938 kB / 484.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.1192, allocations: 242.7 kB / 484.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.903e-06/0.1192, allocations: 3.938 kB / 484.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.0009622/0.1201, allocations: 0.5652 MB / 485 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.533e-05/0.1202, allocations: 131 kB / 485.1 MB, free: 488 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.1204, allocations: 230.8 kB / 485.3 MB, free: 244 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.1205, allocations: 41.7 kB / 485.4 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1206, allocations: 216.9 kB / 485.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/0.1207, allocations: 98.86 kB / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.1208, allocations: 118.2 kB / 485.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.121, allocations: 338.8 kB / 486.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1212, allocations: 113 kB / 486.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.1215, allocations: 310.3 kB / 486.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005299/0.122, allocations: 459.8 kB / 487 MB, free: 14.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.122, allocations: 0 / 487 MB, free: 14.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006604/0.1227, allocations: 468.6 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1227, allocations: 8 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1227, allocations: 8 kB / 487.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1227, allocations: 11.94 kB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.123, allocations: 75.83 kB / 487.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.123, allocations: 12.5 kB / 487.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.1232, allocations: 43.67 kB / 487.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.1233, allocations: 20 kB / 487.6 MB, free: 13.74 MB / 366.1 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 (getBoolean.dummy,$PRE.getBoolean.dummy,addBoolean.pkgOut[1].dummy,$PRE.addBoolean.pkgOut[1].dummy,unpackInt1.dummy,$PRE.unpackInt1.dummy,unpackInt1.y,$PRE.unpackInt1.y,unpackInt1.pkgOut[1].dummy,$PRE.unpackInt1.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],getInteger.pkgOut[1].dummy,$PRE.getInteger.pkgOut[1].dummy,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,packInt1.pkgOut[1].dummy,$PRE.packInt1.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,$whenCondition2,addBoolean.pkgOut[1].trigger,$whenCondition1,getBoolean.y_int[1],$PRE.getBoolean.y_int[1],getBoolean.y[1],booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,addBoolean.u_int[1],addBoolean.u[1],integerExpression.y,addInteger.u[1],integerExpression1.y,getBoolean.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.backwardTrigger,addBoolean.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,packInt1.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 (61): * Single equations (assignments): 61 * 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.0002378/0.1235, allocations: 253.6 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.783e-05/0.1235, allocations: 27.72 kB / 487.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.1236, allocations: 26.55 kB / 487.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1236, allocations: 0 / 487.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1236, allocations: 8 kB / 487.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.1237, allocations: 104.8 kB / 488 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.1237, allocations: 4 kB / 488 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.1239, allocations: 15.97 kB / 488 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.1239, allocations: 27.91 kB / 488.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008123/0.1247, allocations: 0.7027 MB / 488.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007877/0.1256, allocations: 0.7886 MB / 489.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002275/0.1258, allocations: 153.6 kB / 489.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.521e-05/0.1259, allocations: 131.4 kB / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Backend: time 2.8e-07/0.1259, allocations: 0 / 489.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009859/0.1269, allocations: 375.5 kB / 490.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of SimCode: time 0.001144/0.128, allocations: 1.062 MB / 491.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of Templates: time 0.008676/0.1367, allocations: 4.818 MB / 496.1 MB, free: 5.203 MB / 366.1 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)