Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.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_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 105.7 kB / 17.13 MB, free: 5.934 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.001049/0.001049, allocations: 194.1 kB / 18.07 MB, free: 5.02 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.287/1.287, 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.05823/0.05823, allocations: 12.05 MB / 304 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 67.89 kB / 420.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07514/0.07633, allocations: 52.3 MB / 473.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger): time 0.003573/0.07993, allocations: 2.642 MB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.08102, allocations: 0.7006 MB / 476.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.08112, allocations: 7.938 kB / 476.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.08134, allocations: 59.36 kB / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.08149, allocations: 51.58 kB / 476.5 MB, free: 9.375 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.0005148/0.08202, allocations: 235.3 kB / 476.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000318/0.08234, allocations: 335.2 kB / 477.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.08264, allocations: 202.7 kB / 477.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.0828, allocations: 163.4 kB / 477.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.08302, allocations: 203.2 kB / 477.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.221e-05/0.08309, allocations: 40 kB / 477.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.08329, allocations: 127.9 kB / 477.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.08343, allocations: 135.6 kB / 477.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.08358, allocations: 175.1 kB / 478.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.08408, allocations: 0.5489 MB / 478.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.0841, allocations: 0 / 478.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.0841, allocations: 0 / 478.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.08411, allocations: 0 / 478.6 MB, free: 7.238 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: unpackInt1.pkgOut[1].pkg = unpackInt1.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 unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00133/0.08545, allocations: 1.047 MB / 479.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.08549, allocations: 8.031 kB / 479.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.778e-05/0.08557, allocations: 40.55 kB / 479.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.08588, allocations: 293.3 kB / 480 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.08592, allocations: 33.31 kB / 480.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/0.08598, allocations: 36.36 kB / 480.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.0866, allocations: 406.2 kB / 480.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.08662, allocations: 192 / 480.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.08667, allocations: 19.94 kB / 480.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.08668, allocations: 8 kB / 480.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/0.08707, allocations: 223.6 kB / 480.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.08831, allocations: 1.085 MB / 481.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.08875, allocations: 270.3 kB / 482.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.08893, allocations: 123.5 kB / 482.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.08896, allocations: 0 / 482.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.08923, allocations: 214.5 kB / 482.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.08924, allocations: 0 / 482.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0007428/0.08999, allocations: 448 kB / 482.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/0.09007, allocations: 152.5 kB / 483 MB, free: 2.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.09023, allocations: 197 kB / 483.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.09027, allocations: 37.7 kB / 483.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.09038, allocations: 188.4 kB / 483.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.418e-05/0.09044, allocations: 63.2 kB / 483.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.09056, allocations: 98.09 kB / 483.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.09067, allocations: 334.8 kB / 483.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.09082, allocations: 80.83 kB / 484 MB, free: 1.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.09105, allocations: 231.2 kB / 484.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003976/0.09145, allocations: 358.5 kB / 484.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.09146, allocations: 7.938 kB / 484.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000519/0.09199, allocations: 356.9 kB / 484.9 MB, free: 484 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.09201, allocations: 8 kB / 484.9 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.09203, allocations: 8 kB / 484.9 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.09205, allocations: 4 kB / 484.9 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.09225, allocations: 59.84 kB / 485 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.09228, allocations: 8.562 kB / 485 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.09241, allocations: 31.94 kB / 485 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.09245, allocations: 28 kB / 485.1 MB, free: 336 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 46 (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],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,addInteger.u[1],iExp2.y,unpackInt1.pkgOut[1].trigger,iExp.y,$PRE.iExp.y,$whenCondition1,unpackInt1.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,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 (47): * Single equations (assignments): 47 * 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.0001911/0.09265, allocations: 211.1 kB / 485.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.09269, allocations: 19.81 kB / 485.3 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.09274, allocations: 21.17 kB / 485.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.09275, allocations: 4 kB / 485.3 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.09275, allocations: 0 / 485.3 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.09282, allocations: 100.8 kB / 485.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.09286, allocations: 8 kB / 485.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.533e-05/0.09294, allocations: 3.984 kB / 485.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.09299, allocations: 19.92 kB / 485.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006256/0.09362, allocations: 0.6509 MB / 486.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006322/0.09427, allocations: 0.7385 MB / 486.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000165/0.09444, allocations: 107.9 kB / 486.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.981e-05/0.09452, allocations: 115.2 kB / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Backend: time 3.31e-07/0.09453, allocations: 32 / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009735/0.09551, allocations: 335.8 kB / 487.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of SimCode: time 0.0009176/0.09644, allocations: 0.9216 MB / 488.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of Templates: time 0.006885/0.1033, allocations: 3.657 MB / 492 MB, free: 9.398 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe 2>&1)